mirror of
https://github.com/game-ci/unity-actions.git
synced 2026-01-29 12:49:08 +08:00
Add license and test step
This commit is contained in:
38
activate/entrypoint.sh
Normal file
38
activate/entrypoint.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
if [[ ! -z "$UNITY_LICENSE" ]]; then
|
||||
#
|
||||
# PERSONAL LICENSE MODE
|
||||
#
|
||||
# This will activate Unity, using a license file
|
||||
#
|
||||
# Note that this is the ONLY WAY for PERSONAL LICENSES in 2019.
|
||||
# * See for more details: https://gitlab.com/gableroux/unity3d-gitlab-ci-example/issues/5#note_72815478
|
||||
#
|
||||
# The license file can be found here:
|
||||
# * Windows: C:/ProgramData/Unity/Unity_lic.ulf
|
||||
# * MacOS: /Library/Application Support/Unity/Unity_lic.ulf
|
||||
#
|
||||
echo "$UNITY_LICENSE" > /root/.local/share/unity3d/Unity/Unity_lic.ulf
|
||||
else
|
||||
#
|
||||
# PROFESSIONAL (SERIAL) LICENSE MODE
|
||||
#
|
||||
# This will activate unity, using the activating process.
|
||||
#
|
||||
# Note: This is the preferred way for PROFESSIONAL LICENSES.
|
||||
#
|
||||
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
|
||||
/opt/Unity/Editor/Unity \
|
||||
-logFile /dev/stdout \
|
||||
-batchmode \
|
||||
-username "$UNITY_EMAIL" \
|
||||
-password "$UNITY_PASSWORD" \
|
||||
-serial "$UNITY_SERIAL" \
|
||||
-nographics \
|
||||
-verbose \
|
||||
-quit \
|
||||
-projectPath "$(pwd)"
|
||||
fi
|
||||
Reference in New Issue
Block a user