We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bda683c commit fbb779bCopy full SHA for fbb779b
scripts/copy.ps1
@@ -1,16 +1,15 @@
1
param(
2
[Parameter(ValueFromRemainingArguments=$true)]
3
[string[]]$args,
4
- [switch]$log = $false
+ [switch]$log = $false,
5
+ [switch]$release = $false
6
)
7
-# Forward the "release" argument to build.ps1 if it exists
8
-$buildArgs = @()
9
-if ($args -contains "release") {
10
- $buildArgs += "release"
+if ($release) {
+ & $PSScriptRoot/build.ps1 -release
+} else {
11
+ & $PSScriptRoot/build.ps1
12
}
-
13
-& $PSScriptRoot/build.ps1 @buildArgs
14
if ($?) {
15
adb push build/libtracks.so /sdcard/ModData/com.beatgames.beatsaber/Modloader/mods/libtracks.so
16
0 commit comments