mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-01-29 06:20:07 +08:00
* First take on adding support for sending in unity licensing server url on linux * Forgot to build dist * Moved services-config parsing to typescript * Need to set licensing server env variable for activate.sh * Forgot unused docker mount directory /resources
28 lines
719 B
Bash
Executable File
28 lines
719 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Run in ACTIVATE_LICENSE_PATH directory
|
|
echo "Changing to \"$ACTIVATE_LICENSE_PATH\" directory."
|
|
pushd "$ACTIVATE_LICENSE_PATH"
|
|
|
|
if [[ -n "$UNITY_LICENSING_SERVER" ]]; then #
|
|
#
|
|
# Return any floating license used.
|
|
#
|
|
echo "Returning floating license: \"$FLOATING_LICENSE\""
|
|
/opt/unity/Editor/Data/Resources/Licensing/Client/Unity.Licensing.Client --return-floating "$FLOATING_LICENSE"
|
|
elif [[ -n "$UNITY_SERIAL" ]]; then
|
|
#
|
|
# PROFESSIONAL (SERIAL) LICENSE MODE
|
|
#
|
|
# This will return the license that is currently in use.
|
|
#
|
|
unity-editor \
|
|
-batchmode \
|
|
-nographics \
|
|
-logFile /dev/stdout \
|
|
-quit \
|
|
-returnlicense
|
|
fi
|
|
# Return to previous working directory
|
|
popd
|