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