-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage_windows_app.ps1
More file actions
59 lines (48 loc) · 2.09 KB
/
package_windows_app.ps1
File metadata and controls
59 lines (48 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# VoidLoop - Windows App Packager (PowerShell)
Write-Host "============================================================" -ForegroundColor Cyan
Write-Host "VoidLoop - Windows App Packager" -ForegroundColor Cyan
Write-Host "============================================================" -ForegroundColor Cyan
Write-Host ""
Write-Host "🔨 Building Windows release..." -ForegroundColor Yellow
flutter build windows --release
if ($LASTEXITCODE -ne 0) {
Write-Host ""
Write-Host "❌ Build failed!" -ForegroundColor Red
Read-Host "Press Enter to exit"
exit 1
}
Write-Host ""
Write-Host "✅ Build successful!" -ForegroundColor Green
Write-Host ""
$buildDir = "build\windows\x64\runner\Release"
$packageDir = "VoidLoop-Windows"
Write-Host "📦 Creating package directory..." -ForegroundColor Yellow
if (Test-Path $packageDir) {
Remove-Item -Recurse -Force $packageDir
}
New-Item -ItemType Directory -Path $packageDir | Out-Null
Write-Host ""
Write-Host "📋 Copying files..." -ForegroundColor Yellow
Copy-Item -Path "$buildDir\*" -Destination $packageDir -Recurse -Force
Write-Host ""
Write-Host "✅ Package created successfully!" -ForegroundColor Green
Write-Host ""
Write-Host "📁 Location: $packageDir" -ForegroundColor Cyan
Write-Host "📦 Contents:" -ForegroundColor Cyan
Get-ChildItem $packageDir | Format-Table Name, Length -AutoSize
Write-Host ""
Write-Host "============================================================" -ForegroundColor Cyan
Write-Host "You can now:" -ForegroundColor White
Write-Host " 1. Run: $packageDir\voidloop.exe" -ForegroundColor White
Write-Host " 2. Zip the folder and distribute it" -ForegroundColor White
Write-Host " 3. Create an installer (optional)" -ForegroundColor White
Write-Host "============================================================" -ForegroundColor Cyan
Write-Host ""
$run = Read-Host "Would you like to run the app now? (Y/N)"
if ($run -eq "Y" -or $run -eq "y") {
Write-Host ""
Write-Host "🚀 Starting VoidLoop..." -ForegroundColor Green
Start-Process "$packageDir\voidloop.exe"
}
Write-Host ""
Write-Host "Done!" -ForegroundColor Green