mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
Cache unity process handle
This commit is contained in:
parent
458ca489c0
commit
66b7f8c362
3
dist/platforms/windows/build.ps1
vendored
3
dist/platforms/windows/build.ps1
vendored
@ -161,6 +161,9 @@ $unityProcess = Start-Process -FilePath "$Env:UNITY_PATH\Editor\Unity.exe" `
|
||||
-PassThru `
|
||||
-NoNewWindow
|
||||
|
||||
# Cache the handle so exit code works properly
|
||||
$unityHandle = $unityProcess.Handle
|
||||
|
||||
while ($true) {
|
||||
if ($unityProcess.HasExited) {
|
||||
Start-Sleep -Seconds 5
|
||||
|
Loading…
Reference in New Issue
Block a user