-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBuild.ps1
More file actions
32 lines (28 loc) · 737 Bytes
/
Build.ps1
File metadata and controls
32 lines (28 loc) · 737 Bytes
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
# Build.ps1 for WiiPy
# Default option is to run build, like a Makefile
param(
[string]$Task = "build"
)
$buildWiiPy = {
Write-Host "Building WiiPy..."
python -m nuitka --show-progress --assume-yes-for-downloads --onefile wiipy.py --onefile-tempdir-spec="{CACHE_DIR}/NinjaCheetah/WiiPy"
}
$cleanWiiPy = {
Write-Host "Cleaning..."
Remove-Item -Recurse -Force wiipy.exe, ./wiipy.build/, ./wiipy.dist/, ./wiipy.onefile-build/
}
switch ($Task.ToLower()) {
"build" {
& $buildWiiPy
break
}
"clean" {
& $cleanWiiPy
break
}
default {
Write-Host "Unknown task: $Task" -ForegroundColor Red
Write-Host "Available tasks: build, clean"
break
}
}