mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-01-29 06:20:07 +08:00
* Modifying js files to account for win support * Added new powershell scripts to support windows invocation * Fixed undefined error in stack trace logic * Added new func for resolving image tag default * Changed structure of docker.js to match new standard
19 lines
650 B
PowerShell
19 lines
650 B
PowerShell
# Run in ACTIVATE_LICENSE_PATH directory
|
|
Write-Output "Changing to $ACTIVATE_LICENSE_PATH directory."
|
|
Push-Location "$ACTIVATE_LICENSE_PATH"
|
|
|
|
if ($null -ne ${env:UNITY_SERIAL})
|
|
{
|
|
#
|
|
# PROFESSIONAL (SERIAL) LICENSE MODE
|
|
#
|
|
# This will return the license that is currently in use.
|
|
#
|
|
$RETURN_OUTPUT = Start-Process -NoNewWindow -Wait -PassThru "C:\Program Files\Unity\Hub\Editor\${env:UNITY_VERSION}\editor\Unity.exe" -ArgumentList "-batchmode -nographics -logFile $FULL_ARTIFACTS_PATH\deactivate.log -quit -returnlicense"
|
|
|
|
Get-Content $FULL_ARTIFACTS_PATH\deactivate.log
|
|
}
|
|
|
|
# Return to previous working directory
|
|
Pop-Location
|