Separate standalone and onefile packages on Windows

This commit is contained in:
2025-07-04 12:49:51 -04:00
parent 690a14b77c
commit bb93248b62
4 changed files with 32 additions and 3 deletions

View File

@@ -11,6 +11,12 @@ $buildNUSGet = {
python -m nuitka --show-progress --assume-yes-for-downloads NUSGet.py
}
$buildNUSGetOnefile = {
Write-Host "Building NUSGet in onefile mode..."
python build_translations.py
python -m nuitka --show-progress --assume-yes-for-downloads --onefile NUSGet.py
}
$cleanNUSGet = {
Write-Host "Cleaning..."
Remove-Item -Recurse -Force NUSGet.exe, ./NUSGet.build/, ./NUSGet.dist/, ./NUSGet.onefile-build/
@@ -21,6 +27,10 @@ switch ($Task.ToLower()) {
& $buildNUSGet
break
}
"build-onefile" {
& $buildNUSGetOnefile
break
}
"clean" {
& $cleanNUSGet
break