mirror of
https://github.com/game-ci/unity-actions.git
synced 2026-01-29 04:39:07 +08:00
28 lines
775 B
Bash
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."
|