Skip to content

Commit fbb779b

Browse files
committed
Fix release build
1 parent bda683c commit fbb779b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

scripts/copy.ps1

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
param(
22
[Parameter(ValueFromRemainingArguments=$true)]
33
[string[]]$args,
4-
[switch]$log = $false
4+
[switch]$log = $false,
5+
[switch]$release = $false
56
)
67

7-
# Forward the "release" argument to build.ps1 if it exists
8-
$buildArgs = @()
9-
if ($args -contains "release") {
10-
$buildArgs += "release"
8+
if ($release) {
9+
& $PSScriptRoot/build.ps1 -release
10+
} else {
11+
& $PSScriptRoot/build.ps1
1112
}
12-
13-
& $PSScriptRoot/build.ps1 @buildArgs
1413
if ($?) {
1514
adb push build/libtracks.so /sdcard/ModData/com.beatgames.beatsaber/Modloader/mods/libtracks.so
1615
if ($?) {

0 commit comments

Comments
 (0)