Add projectPath arg to license activation command

pull/107/head
Txema Martinez 2021-03-19 14:15:07 +01:00
parent b741a97823
commit 9ee1c4afde
2 changed files with 10 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#
# Set and display project path
#
UNITY_PROJECT_PATH="$GITHUB_WORKSPACE/$PROJECT_PATH"
echo "Using project path \"$UNITY_PROJECT_PATH\"."
if [[ -n "$UNITY_LICENSE" ]] || [[ -n "$UNITY_LICENSE_FILE" ]]; then if [[ -n "$UNITY_LICENSE" ]] || [[ -n "$UNITY_LICENSE_FILE" ]]; then
# #
# PERSONAL LICENSE MODE # PERSONAL LICENSE MODE
@ -29,6 +35,7 @@ if [[ -n "$UNITY_LICENSE" ]] || [[ -n "$UNITY_LICENSE_FILE" ]]; then
-nographics \ -nographics \
-logFile /dev/stdout \ -logFile /dev/stdout \
-quit \ -quit \
-projectPath "$UNITY_PROJECT_PATH" \
-manualLicenseFile $FILE_PATH) -manualLicenseFile $FILE_PATH)
# Store the exit code from the verify command # Store the exit code from the verify command
@ -69,7 +76,8 @@ elif [[ -n "$UNITY_SERIAL" && -n "$UNITY_EMAIL" && -n "$UNITY_PASSWORD" ]]; then
-quit \ -quit \
-serial "$UNITY_SERIAL" \ -serial "$UNITY_SERIAL" \
-username "$UNITY_EMAIL" \ -username "$UNITY_EMAIL" \
-password "$UNITY_PASSWORD" -password "$UNITY_PASSWORD" \
-projectPath "$UNITY_PROJECT_PATH"
# Store the exit code from the verify command # Store the exit code from the verify command
UNITY_EXIT_CODE=$? UNITY_EXIT_CODE=$?