diff --git a/dist/platforms/mac/steps/activate.sh b/dist/platforms/mac/steps/activate.sh index a3def9f3..e81b1cbb 100755 --- a/dist/platforms/mac/steps/activate.sh +++ b/dist/platforms/mac/steps/activate.sh @@ -2,6 +2,9 @@ echo "Requesting activation" +# Need this because it tries to initialize the library when activating +UNITY_PROJECT_PATH="$GITHUB_WORKSPACE/$PROJECT_PATH" + # Activate license /Applications/Unity/Hub/Editor/$UNITY_VERSION/Unity.app/Contents/MacOS/Unity \ -logFile /dev/stdout \ @@ -10,7 +13,8 @@ echo "Requesting activation" -quit \ -serial "$UNITY_SERIAL" \ -username "$UNITY_EMAIL" \ - -password "$UNITY_PASSWORD" + -password "$UNITY_PASSWORD" \ + -projectPath "$UNITY_PROJECT_PATH" # Store the exit code from the verify command UNITY_EXIT_CODE=$? diff --git a/dist/platforms/mac/steps/return_license.sh b/dist/platforms/mac/steps/return_license.sh index 89ae21b1..f31adb52 100755 --- a/dist/platforms/mac/steps/return_license.sh +++ b/dist/platforms/mac/steps/return_license.sh @@ -1,8 +1,12 @@ #!/usr/bin/env bash +# Need this because it tries to initialize the library when deactivating +UNITY_PROJECT_PATH="$GITHUB_WORKSPACE/$PROJECT_PATH" + /Applications/Unity/Hub/Editor/$UNITY_VERSION/Unity.app/Contents/MacOS/Unity \ -logFile /dev/stdout \ -batchmode \ -nographics \ -quit \ - -returnlicense + -returnlicense \ + -projectPath "$UNITY_PROJECT_PATH"