Initial work on returning floating license when using licensing server

pull/468/head
Simen Sandvaer 2022-10-14 22:09:41 +02:00
parent 58e14371bb
commit e7766e8d01
2 changed files with 14 additions and 0 deletions

View File

@ -14,6 +14,20 @@ if [[ -n "$UNITY_SERIAL" ]]; then
-logFile /dev/stdout \ -logFile /dev/stdout \
-quit \ -quit \
-returnlicense -returnlicense
elif [[ -n "$UNITY_LICENSING_SERVER" ]]; then #
#
# Return any floating license used.
#
echo "Returning floating licenses"
for file in ~/.config/unity3d/Unity/licenses/*.xml; do
echo "$file"
token=$(basename $file .xml)
/opt/unity/Editor/Data/Resources/Licensing/Client/Unity.Licensing.Client --return-floating $token
status=$?
echo "status $status"
echo "Returned $token"
done
fi fi
# Return to previous working directory # Return to previous working directory

Binary file not shown.