mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00

- Added `runAsHostUser` to allow running the container as the same user as the host system. This fixes most permissions issues on self-hosted runners. - Perform android sdk setup during entrypoint.sh to ensure it has root permissions if the user switches to a non-root user - Automatically detect android sdk target version if parameters are not already provided to configure the sdk - Generate a new uuid for machineID to ensure separate containers are unique to reduce license activation errors - Add exponential retry strategy for Ubuntu license activations
17 lines
617 B
PowerShell
17 lines
617 B
PowerShell
# Activates Unity
|
|
|
|
Write-Output ""
|
|
Write-Output "###########################"
|
|
Write-Output "# Activating #"
|
|
Write-Output "###########################"
|
|
Write-Output ""
|
|
|
|
& "$Env:UNITY_PATH/Editor/Unity.exe" -batchmode -quit -nographics `
|
|
-username $Env:UNITY_EMAIL `
|
|
-password $Env:UNITY_PASSWORD `
|
|
-serial $Env:UNITY_SERIAL `
|
|
-projectPath "c:/BlankProject" `
|
|
-logfile - | Out-Host
|
|
|
|
$ACTIVATION_EXIT_CODE = $LASTEXITCODE
|