diff --git a/dist/platforms/mac/entrypoint.sh b/dist/platforms/mac/entrypoint.sh index f437e9e8..b5a5e6f1 100755 --- a/dist/platforms/mac/entrypoint.sh +++ b/dist/platforms/mac/entrypoint.sh @@ -6,8 +6,8 @@ UNITY_LICENSE_PATH="/Library/Application Support/Unity" -if [ -d "$UNITY_LICENSE_PATH"]; then - sudo mkdir "$UNITY_LICENSE_PATH" +if [ -d "$UNITY_LICENSE_PATH" ]; then + sudo mkdir -p "$UNITY_LICENSE_PATH" sudo chmod -R 777 "$UNITY_LICENSE_PATH" fi; diff --git a/dist/platforms/windows/build.ps1 b/dist/platforms/windows/build.ps1 index 4052b999..751cf9d2 100644 --- a/dist/platforms/windows/build.ps1 +++ b/dist/platforms/windows/build.ps1 @@ -162,14 +162,12 @@ $unityProcess = Start-Process -FilePath "$Env:UNITY_PATH\Editor\Unity.exe" ` -NoNewWindow # Cache the handle so exit code works properly +# https://stackoverflow.com/questions/10262231/obtaining-exitcode-using-start-process-and-waitforexit-instead-of-wait $unityHandle = $unityProcess.Handle while ($true) { if ($unityProcess.HasExited) { - Start-Sleep -Seconds 5 - Get-Process - - Start-Sleep -Seconds 10 + Start-Sleep -Seconds 3 Get-Process $BUILD_EXIT_CODE = $unityProcess.ExitCode @@ -195,5 +193,5 @@ while ($true) { break } - Start-Sleep -Seconds 5 + Start-Sleep -Seconds 3 }