Add releasing license when using licensing server

This commit is contained in:
simensan 2023-09-18 10:36:38 +02:00 committed by GitHub
parent 79133b2bd8
commit d65cb6db57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,15 @@
echo "Changing to \"$ACTIVATE_LICENSE_PATH\" directory." echo "Changing to \"$ACTIVATE_LICENSE_PATH\" directory."
pushd "$ACTIVATE_LICENSE_PATH" pushd "$ACTIVATE_LICENSE_PATH"
/Applications/Unity/Hub/Editor/$UNITY_VERSION/Unity.app/Contents/MacOS/Unity \
if [[ -n "$UNITY_LICENSING_SERVER" ]]; then #
#
# Return any floating license used.
#
echo "Returning floating license: \"$FLOATING_LICENSE\""
/Applications/Unity/Hub/Editor/$UNITY_VERSION/Unity.app/Contents/Frameworks/UnityLicensingClient.app/Contents/MacOS/Unity.Licensing.Client --return-floating "$FLOATING_LICENSE"
else
/Applications/Unity/Hub/Editor/$UNITY_VERSION/Unity.app/Contents/MacOS/Unity \
-logFile - \ -logFile - \
-batchmode \ -batchmode \
-nographics \ -nographics \
@ -14,5 +22,7 @@ pushd "$ACTIVATE_LICENSE_PATH"
-returnlicense \ -returnlicense \
-projectPath "$ACTIVATE_LICENSE_PATH" -projectPath "$ACTIVATE_LICENSE_PATH"
# Return to previous working directory # Return to previous working directory
fi
popd popd