Monorepo for Aesthetic.Computer aesthetic.computer
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 49 lines 2.0 kB view raw
1# Upload SpiderLily build to aesthetic-computer assets directory 2param( 3 [string]$BuildPath = "C:\Users\me\Desktop\SpiderLily-2025.11.07-0207\Windows", 4 [string]$Version = "2025.11.07-0207" 5) 6 7$ZipName = "spiderlily-windows-$Version.zip" 8$ZipPath = "$env:TEMP\$ZipName" 9$WSLPath = "\\wsl.localhost\Ubuntu\workspaces\aesthetic-computer\system\public\assets\false.work\$ZipName" 10 11Write-Host "=========================================" -ForegroundColor Cyan 12Write-Host "Upload SpiderLily Build to Assets" -ForegroundColor Cyan 13Write-Host "=========================================" -ForegroundColor Cyan 14Write-Host "" 15 16# Compress build 17Write-Host "🗜️ Compressing build..." -ForegroundColor Yellow 18Write-Host " Source: $BuildPath" 19Compress-Archive -Path "$BuildPath\*" -DestinationPath $ZipPath -CompressionLevel Optimal -Force 20 21$size = (Get-Item $ZipPath).Length / 1MB 22$sizeRounded = [math]::Round($size, 2) 23Write-Host " ✓ Created: $ZipName ($sizeRounded MB)" -ForegroundColor Green 24Write-Host "" 25 26# Copy to WSL 27Write-Host "📁 Copying to assets directory..." -ForegroundColor Yellow 28Write-Host " Target: $WSLPath" 29 30try { 31 Copy-Item -Path $ZipPath -Destination $WSLPath -Force 32 Write-Host " ✓ Copied successfully!" -ForegroundColor Green 33 Write-Host "" 34 Write-Host "✅ Upload complete!" -ForegroundColor Green 35 Write-Host "" 36 Write-Host "Next steps:" -ForegroundColor Cyan 37 Write-Host "1. Run in WSL container: npm run assets:sync:up" 38 Write-Host "2. Build will be at: https://assets.aesthetic.computer/false.work/$ZipName" 39 Write-Host "3. Update builds.false.work/index.html with download link" 40} catch { 41 Write-Host " ❌ Failed to copy to WSL" -ForegroundColor Red 42 Write-Host "" 43 Write-Host "Alternative: Manually copy from:" -ForegroundColor Yellow 44 Write-Host " $ZipPath" 45 Write-Host "To:" -ForegroundColor Yellow 46 Write-Host " \\wsl`$\Ubuntu\workspaces\aesthetic-computer\system\public\assets\false.work\" 47} 48 49Write-Host ""