diff --git a/dist/platforms/windows/build.ps1 b/dist/platforms/windows/build.ps1 index 52b16726..0a85d346 100644 --- a/dist/platforms/windows/build.ps1 +++ b/dist/platforms/windows/build.ps1 @@ -137,20 +137,20 @@ $unityArgs = @( "-batchmode", "-nographics", "-silent-crashes", - "-customBuildName", "$Env:BUILD_NAME", - "-projectPath", "$Env:UNITY_PROJECT_PATH", - "-executeMethod", "$Env:BUILD_METHOD", - "-buildTarget", "$Env:BUILD_TARGET", - "-customBuildTarget", "$Env:BUILD_TARGET", - "-customBuildPath", "$Env:CUSTOM_BUILD_PATH", - "-buildVersion", "$Env:VERSION", - "-androidVersionCode", "$Env:ANDROID_VERSION_CODE", - "-androidKeystorePass", "$Env:ANDROID_KEYSTORE_PASS", - "-androidKeyaliasName", "$Env:ANDROID_KEYALIAS_NAME", - "-androidKeyaliasPass", "$Env:ANDROID_KEYALIAS_PASS", - "-androidTargetSdkVersion", "$Env:ANDROID_TARGET_SDK_VERSION", - "-androidExportType", "$Env:ANDROID_EXPORT_TYPE", - "-androidSymbolType", "$Env:ANDROID_SYMBOL_TYPE", + "-customBuildName", "`"$Env:BUILD_NAME`"", + "-projectPath", "`"$Env:UNITY_PROJECT_PATH`"", + "-executeMethod", "`"$Env:BUILD_METHOD`"", + "-buildTarget", "`"$Env:BUILD_TARGET`"", + "-customBuildTarget", "`"$Env:BUILD_TARGET`"", + "-customBuildPath", "`"$Env:CUSTOM_BUILD_PATH`"", + "-buildVersion", "`"$Env:VERSION`"", + "-androidVersionCode", "`"$Env:ANDROID_VERSION_CODE`"", + "-androidKeystorePass", "`"$Env:ANDROID_KEYSTORE_PASS`"", + "-androidKeyaliasName", "`"$Env:ANDROID_KEYALIAS_NAME`"", + "-androidKeyaliasPass", "`"$Env:ANDROID_KEYALIAS_PASS`"", + "-androidTargetSdkVersion", "`"$Env:ANDROID_TARGET_SDK_VERSION`"", + "-androidExportType", "`"$Env:ANDROID_EXPORT_TYPE`"", + "-androidSymbolType", "`"$Env:ANDROID_SYMBOL_TYPE`"", "-logfile", "-" ) + $customParametersArray