From e20eff800d8d79713916fb10d5284526fa30a988 Mon Sep 17 00:00:00 2001 From: simensan Date: Mon, 18 Sep 2023 12:20:35 +0200 Subject: [PATCH] Tweaks to mac build Create unity config dir if it doesnt exist Remove username password from build script on mac --- dist/platforms/mac/steps/activate.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/platforms/mac/steps/activate.sh b/dist/platforms/mac/steps/activate.sh index f50da399..51f23d87 100755 --- a/dist/platforms/mac/steps/activate.sh +++ b/dist/platforms/mac/steps/activate.sh @@ -15,7 +15,8 @@ if [[ -n "$UNITY_LICENSING_SERVER" ]]; then ls popd cat "$ACTION_FOLDER/unity-config/services-config.json" - cp "$ACTION_FOLDER//unity-config/services-config.json" "/Library/Application Support/Unity/config/services-config.json" + mkdir -p "/Library/Application Support/Unity/config/" + cp "$ACTION_FOLDER/unity-config/services-config.json" "/Library/Application Support/Unity/config/services-config.json" /Applications/Unity/Hub/Editor/$UNITY_VERSION/Unity.app/Contents/Frameworks/UnityLicensingClient.app/Contents/MacOS/Unity.Licensing.Client --acquire-floating > license.txt #is this accessible in a env variable? cat license.txt PARSEDFILE=$(grep -oE '\".*?\"' < license.txt | tr -d '"')