Files
unity-actions/request-manual-activation-file/entrypoint.sh
2019-11-24 19:26:35 +01:00

28 lines
775 B
Bash

#!/usr/bin/env bash
# The container's unity version
UNITY_VERSION=2019.2.11f1
# Determine the expected file name and path
FILE_NAME=Unity_v$UNITY_VERSION.alf
FILE_PATH=$FILE_NAME
# Request the manual activation file for activating unity personal
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
/opt/Unity/Editor/Unity \
-batchmode \
-nographics \
-logFile /dev/stdout \
-quit \
-createManualActivationFile
# Output the resulting file by copying
cp $FILE_NAME $HOME/$FILE_PATH
# Set resulting name as output variable
echo ::set-output name=filePath::$FILE_PATH
# Explain what to do next
echo "Use the file \"$FILE_PATH\" for manual activation."
echo "Set the contents of the resulting license file as the \$UNITY_LICENSE variabe."