mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
Build array before call
This commit is contained in:
parent
908b8afe33
commit
c7da222bdf
38
dist/platforms/windows/build.ps1
vendored
38
dist/platforms/windows/build.ps1
vendored
@ -133,25 +133,27 @@ Write-Output ""
|
||||
# in double quotes. To avoid this, parse $Env:CUSTOM_PARAMETERS into an array, while respecting any quotations within the string.
|
||||
$_, $customParametersArray = Invoke-Expression('Write-Output -- "" ' + $Env:CUSTOM_PARAMETERS) | ForEach-Object { $_.ToString() }
|
||||
|
||||
$argList = @("-quit",
|
||||
"-batchmode",
|
||||
"-nographics",
|
||||
"-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,
|
||||
"-androidExportType", $Env:ANDROID_EXPORT_TYPE,
|
||||
"-androidSymbolType", $Env:ANDROID_SYMBOL_TYPE,
|
||||
"-logfile", "-", "./build.log",
|
||||
"-silent-crashes"
|
||||
) + $customParametersArray
|
||||
|
||||
$process = Start-Process -FilePath "C:\Program Files\Unity\Hub\Editor\$Env:UNITY_VERSION\Editor\Unity.exe" `
|
||||
-ArgumentList @("-quit",
|
||||
"-batchmode",
|
||||
"-nographics",
|
||||
"-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,
|
||||
"-androidExportType", $Env:ANDROID_EXPORT_TYPE,
|
||||
"-androidSymbolType", $Env:ANDROID_SYMBOL_TYPE,
|
||||
"-logfile", "-", "./build.log",
|
||||
"-silent-crashes"
|
||||
) + $customParametersArray `
|
||||
-ArgumentList $argList `
|
||||
-NoNewWindow `
|
||||
-PassThru
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user