Fix project path

pull/326/head
Andrew Kahr 2022-01-26 16:15:47 -08:00
parent f5b23d8f21
commit 9bcd2f765a
2 changed files with 10 additions and 2 deletions

View File

@ -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=$?

View File

@ -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"