Add UNITY_LICENSE_PATH

This commit is contained in:
litefeel 2020-03-02 01:54:52 +08:00 committed by Webber Takken
parent 465f15a945
commit 0088ca3094
3 changed files with 11 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
if [[ -n "$UNITY_LICENSE" ]]; then
if [[ -n "$UNITY_LICENSE" || -n "$UNITY_LICENSE_PATH" ]]; then
#
# PERSONAL LICENSE MODE
#
@ -15,8 +15,14 @@ if [[ -n "$UNITY_LICENSE" ]]; then
# Set the license file path
FILE_PATH=UnityLicenseFile.ulf
# Copy license file from Github variables
echo "$UNITY_LICENSE" | tr -d '\r' > $FILE_PATH
if [[ -n "$UNITY_LICENSE" ]]; then
# Copy license file from Github variables
echo "$UNITY_LICENSE" | tr -d '\r' > $FILE_PATH
else
# Copy license file from file system
cat "$UNITY_LICENSE_PATH" | tr -d '\r' > $FILE_PATH
cat "$FILE_PATH"
fi
# Activate license
ACTIVATION_OUTPUT=$(xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \

View File

@ -34,6 +34,7 @@ class Docker {
--workdir /github/workspace \
--rm \
--env UNITY_LICENSE \
--env UNITY_LICENSE_PATH \
--env UNITY_EMAIL \
--env UNITY_PASSWORD \
--env UNITY_SERIAL \