forked from NinjaCheetah/NUSGet
Separate standalone and onefile packages on Windows
This commit is contained in:
10
Build.ps1
10
Build.ps1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user