Skip to content

Commit 52e9e15

Browse files
committed
Hardcoded OS
1 parent 870b619 commit 52e9e15

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

BuildUnityPackages.ps1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ $builderPath = -join ($myPath, "/Libraries/Internal/UnityPackager/UnityPackager.
88
$editorOutPath = -join ($myPath, "/MLAPI-Editor.unitypackage")
99
$installerOutPath = -join ($myPath, "/MLAPI-Installer.unitypackage")
1010

11+
$windows = "true"
12+
1113
$editorBuildArgs = ""
12-
if (!$IsWindows) {
14+
if ($windows -ne @("true")) {
1315
$editorBuildArgs += -join ($builderPath, " ")
1416
}
17+
18+
1519
$editorBuildArgs += -join ($basePath, " ", $editorOutPath, " ")
1620

1721
For ($i=0; $i -lt $editorFiles.Count; $i++)
@@ -21,7 +25,7 @@ For ($i=0; $i -lt $editorFiles.Count; $i++)
2125
}
2226

2327
$installerBuildArgs = ""
24-
if (!$IsWindows) {
28+
if ($windows -ne "true") {
2529
$installerBuildArgs += -join ($builderPath, " ")
2630
}
2731
$installerBuildArgs += -join ($basePath, " ", $installerOutPath, " ")
@@ -33,7 +37,7 @@ For ($i=0; $i -lt $installerFiles.Count; $i++)
3337
}
3438

3539
$myBuilderPath = "";
36-
if (!$IsWindows) {
40+
if ($windows -ne "true") {
3741
$myBuilderPath = "mono"
3842
} else {
3943
$myBuilderPath = $builderPath

0 commit comments

Comments
 (0)