-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbuild.ps1
More file actions
29 lines (25 loc) · 772 Bytes
/
build.ps1
File metadata and controls
29 lines (25 loc) · 772 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
param (
[string] $platform = "windows"
)
geode build -p $platform
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
if ($platform -eq "windows") {
geode run
} elseif ($platform -eq "android64") {
adb push $PSScriptRoot/build-android64/bobby_shmurner.zoom.geode /storage/emulated/0/Android/media/com.geode.launcher/game/geode/mods/bobby_shmurner.zoom.geode
adb shell am force-stop com.geode.launcher
adb shell am start -D -n "com.geode.launcher/com.geode.launcher.MainActivity"
$gdpid = $null
while ([string]::IsNullOrEmpty($gdpid)) {
Start-Sleep -Milliseconds 100
$gdpid = adb shell pidof com.geode.launcher
}
try {
adb logcat --pid $gdpid
}
finally {
adb shell am force-stop com.geode.launcher
}
} else {
Write-Warning "Cannor auto-run $platform"
}