mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Add UNITY_LICENSE_PATH
This commit is contained in:
parent
465f15a945
commit
0088ca3094
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ -n "$UNITY_LICENSE" ]]; then
|
if [[ -n "$UNITY_LICENSE" || -n "$UNITY_LICENSE_PATH" ]]; then
|
||||||
#
|
#
|
||||||
# PERSONAL LICENSE MODE
|
# PERSONAL LICENSE MODE
|
||||||
#
|
#
|
||||||
@ -15,8 +15,14 @@ if [[ -n "$UNITY_LICENSE" ]]; then
|
|||||||
# Set the license file path
|
# Set the license file path
|
||||||
FILE_PATH=UnityLicenseFile.ulf
|
FILE_PATH=UnityLicenseFile.ulf
|
||||||
|
|
||||||
# Copy license file from Github variables
|
if [[ -n "$UNITY_LICENSE" ]]; then
|
||||||
echo "$UNITY_LICENSE" | tr -d '\r' > $FILE_PATH
|
# 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
|
# Activate license
|
||||||
ACTIVATION_OUTPUT=$(xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
|
ACTIVATION_OUTPUT=$(xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
|
||||||
|
@ -34,6 +34,7 @@ class Docker {
|
|||||||
--workdir /github/workspace \
|
--workdir /github/workspace \
|
||||||
--rm \
|
--rm \
|
||||||
--env UNITY_LICENSE \
|
--env UNITY_LICENSE \
|
||||||
|
--env UNITY_LICENSE_PATH \
|
||||||
--env UNITY_EMAIL \
|
--env UNITY_EMAIL \
|
||||||
--env UNITY_PASSWORD \
|
--env UNITY_PASSWORD \
|
||||||
--env UNITY_SERIAL \
|
--env UNITY_SERIAL \
|
||||||
|
Loading…
Reference in New Issue
Block a user