From 572b30cbc7402d38b2fdafe241eb0a4d2f0ec87b Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sun, 29 Oct 2023 02:10:41 -0700 Subject: [PATCH] Fix Unity pathing --- dist/platforms/windows/activate.ps1 | 12 ++++++------ dist/platforms/windows/build.ps1 | 2 +- dist/platforms/windows/return_license.ps1 | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dist/platforms/windows/activate.ps1 b/dist/platforms/windows/activate.ps1 index 616bdc46..55051c12 100644 --- a/dist/platforms/windows/activate.ps1 +++ b/dist/platforms/windows/activate.ps1 @@ -1,7 +1,7 @@ # Activates Unity -& "$Env:UNITY_PATH\$Env:UNITY_VERSION\Editor\Unity.exe" -batchmode -quit -nographics ` - -username $Env:UNITY_EMAIL ` - -password $Env:UNITY_PASSWORD ` - -serial $Env:UNITY_SERIAL ` - -projectPath "c:/BlankProject" ` - -logfile - +& "$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 - diff --git a/dist/platforms/windows/build.ps1 b/dist/platforms/windows/build.ps1 index 9c788cf5..1a92d6d8 100644 --- a/dist/platforms/windows/build.ps1 +++ b/dist/platforms/windows/build.ps1 @@ -156,7 +156,7 @@ $unityArgs = @( # Remove null items as that will fail the Start-Process call $unityArgs = $unityArgs | Where-Object { $_ -ne $null } -$process = Start-Process -FilePath "$Env:UNITY_PATH\$Env:UNITY_VERSION\Editor\Unity.exe" ` +$process = Start-Process -FilePath "$Env:UNITY_PATH\Editor\Unity.exe" ` -ArgumentList $unityArgs ` -PassThru ` -NoNewWindow diff --git a/dist/platforms/windows/return_license.ps1 b/dist/platforms/windows/return_license.ps1 index c5551486..5f3f4af4 100644 --- a/dist/platforms/windows/return_license.ps1 +++ b/dist/platforms/windows/return_license.ps1 @@ -1,7 +1,7 @@ # Return the active Unity license -& "$Env:UNITY_PATH\$Env:UNITY_VERSION\Editor\Unity.exe" -batchmode -quit -nographics ` - -username $Env:UNITY_EMAIL ` - -password $Env:UNITY_PASSWORD ` - -returnlicense ` - -projectPath "c:/BlankProject" ` - -logfile +& "$Env:UNITY_PATH\Editor\Unity.exe" -batchmode -quit -nographics ` + -username $Env:UNITY_EMAIL ` + -password $Env:UNITY_PASSWORD ` + -returnlicense ` + -projectPath "c:/BlankProject" ` + -logfile