forked from decentraland/unity-renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci-setup.sh
More file actions
executable file
·31 lines (23 loc) · 849 Bytes
/
ci-setup.sh
File metadata and controls
executable file
·31 lines (23 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
function disable_sentry()
{
# Disable Sentry
sed -i 's/<Enabled>k__BackingField: 1/<Enabled>k__BackingField: 0/' unity-renderer/Assets/Resources/Sentry/SentryOptions.asset
}
export PROJECT_PATH
PROJECT_PATH="$(pwd)/unity-renderer"
set -e
set -x
mkdir -p /root/.cache/unity3d
mkdir -p /root/.local/share/unity3d/Unity/
set +x
ls -lah /root/.cache/unity3d
echo "UNITY PATH is $UNITY_PATH"
if [ -z "$DEVELOPERS_UNITY_LICENSE_CONTENT_2020_3_BASE64" ]; then
echo 'DEVELOPERS_UNITY_LICENSE_CONTENT_2020_3_BASE64 not present. License won''t be configured'
else
LICENSE=$(echo "${DEVELOPERS_UNITY_LICENSE_CONTENT_2020_3_BASE64}" | base64 -di | tr -d '\r')
echo "Writing LICENSE to license file /root/.local/share/unity3d/Unity/Unity_lic.ulf"
echo "$LICENSE" > /root/.local/share/unity3d/Unity/Unity_lic.ulf
fi
set -x