Fix activation scripts

This commit is contained in:
Andrew Kahr 2023-10-29 16:18:44 -07:00
parent fdccfff2c4
commit f623864c70
4 changed files with 20 additions and 5 deletions

View File

@ -1,7 +1,14 @@
# Activates Unity # Activates Unity
& "$Env:UNITY_PATH\Editor\Unity.exe" -batchmode -quit -nographics `
Write-Output ""
Write-Output "###########################"
Write-Output "# Activating #"
Write-Output "###########################"
Write-Output ""
& "$Env:UNITY_PATH/Editor/Unity.exe" -batchmode -quit -nographics `
-username $Env:UNITY_EMAIL ` -username $Env:UNITY_EMAIL `
-password $Env:UNITY_PASSWORD ` -password $Env:UNITY_PASSWORD `
-serial $Env:UNITY_SERIAL ` -serial $Env:UNITY_SERIAL `
-projectPath "c:/BlankProject" ` -projectPath "c:/BlankProject" `
-logfile - -logfile - | Out-Host

View File

@ -163,10 +163,10 @@ $process = Start-Process -FilePath "$Env:UNITY_PATH\Editor\Unity.exe" `
while (!$process.HasExited) { while (!$process.HasExited) {
if ($process.HasExited) { if ($process.HasExited) {
Start-Sleep -Seconds 5
Get-Process Get-Process
Start-Sleep -Seconds 10 Start-Sleep -Seconds 10
Get-Process Get-Process
# Display results # Display results

View File

@ -1,4 +1,5 @@
Get-Process Get-Process
Start-Sleep -Seconds 3
# Import any necessary registry keys, ie: location of windows 10 sdk # Import any necessary registry keys, ie: location of windows 10 sdk
# No guarantee that there will be any necessary registry keys, ie: tvOS # No guarantee that there will be any necessary registry keys, ie: tvOS
@ -22,5 +23,5 @@ Get-Process -Name regsvr32 | ForEach-Object { Stop-Process -Id $_.Id -Force }
# Free the seat for the activated license # Free the seat for the activated license
& "c:\steps\return_license.ps1" & "c:\steps\return_license.ps1"
Start-Sleep 3 Start-Sleep -Seconds 3
Get-Process Get-Process

View File

@ -1,7 +1,14 @@
# Return the active Unity license # Return the active Unity license
Write-Output ""
Write-Output "###########################"
Write-Output "# Return License #"
Write-Output "###########################"
Write-Output ""
& "$Env:UNITY_PATH\Editor\Unity.exe" -batchmode -quit -nographics ` & "$Env:UNITY_PATH\Editor\Unity.exe" -batchmode -quit -nographics `
-username $Env:UNITY_EMAIL ` -username $Env:UNITY_EMAIL `
-password $Env:UNITY_PASSWORD ` -password $Env:UNITY_PASSWORD `
-returnlicense ` -returnlicense `
-projectPath "c:/BlankProject" ` -projectPath "c:/BlankProject" `
-logfile - -logfile - | Out-Host