mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Improve license checks
This commit is contained in:
parent
e8e39d7085
commit
d36205158a
4
dist/platforms/mac/steps/activate.sh
vendored
4
dist/platforms/mac/steps/activate.sh
vendored
@ -20,6 +20,10 @@ echo "Requesting activation"
|
|||||||
# Store the exit code from the verify command
|
# Store the exit code from the verify command
|
||||||
UNITY_EXIT_CODE=$?
|
UNITY_EXIT_CODE=$?
|
||||||
|
|
||||||
|
if [ ! -f "/Library/Application Support/Unity/Unity_lic.ulf" ]; then
|
||||||
|
echo "::error ::There was an error while trying to activate the Unity license."
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Display information about the result
|
# Display information about the result
|
||||||
#
|
#
|
||||||
|
6
dist/platforms/ubuntu/steps/activate.sh
vendored
6
dist/platforms/ubuntu/steps/activate.sh
vendored
@ -24,6 +24,10 @@ if [[ -n "$UNITY_SERIAL" && -n "$UNITY_EMAIL" && -n "$UNITY_PASSWORD" ]]; then
|
|||||||
# Store the exit code from the verify command
|
# Store the exit code from the verify command
|
||||||
UNITY_EXIT_CODE=$?
|
UNITY_EXIT_CODE=$?
|
||||||
|
|
||||||
|
if [ ! -f "~/.local/share/unity3d/Unity/Unity_lic.ulf" ]; then
|
||||||
|
echo "::error ::There was an error while trying to activate the Unity license."
|
||||||
|
fi
|
||||||
|
|
||||||
elif [[ -n "$UNITY_LICENSING_SERVER" ]]; then
|
elif [[ -n "$UNITY_LICENSING_SERVER" ]]; then
|
||||||
#
|
#
|
||||||
# Custom Unity License Server
|
# Custom Unity License Server
|
||||||
@ -50,6 +54,7 @@ else
|
|||||||
echo "Visit https://game.ci/docs/github/getting-started for more"
|
echo "Visit https://game.ci/docs/github/getting-started for more"
|
||||||
echo "details on how to set up one of the possible activation strategies."
|
echo "details on how to set up one of the possible activation strategies."
|
||||||
|
|
||||||
|
echo "::error ::No valid license activation strategy could be determined."
|
||||||
# Immediately exit as no UNITY_EXIT_CODE can be derrived.
|
# Immediately exit as no UNITY_EXIT_CODE can be derrived.
|
||||||
exit 1;
|
exit 1;
|
||||||
|
|
||||||
@ -65,7 +70,6 @@ else
|
|||||||
# Activation failed so exit with the code from the license verification step
|
# Activation failed so exit with the code from the license verification step
|
||||||
echo "Unclassified error occured while trying to activate license."
|
echo "Unclassified error occured while trying to activate license."
|
||||||
echo "Exit code was: $UNITY_EXIT_CODE"
|
echo "Exit code was: $UNITY_EXIT_CODE"
|
||||||
echo "::error ::There was an error while trying to activate the Unity license."
|
|
||||||
exit $UNITY_EXIT_CODE
|
exit $UNITY_EXIT_CODE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user