Wrong directory for config

This commit is contained in:
simensan 2023-09-18 12:06:54 +02:00
parent 013aae0cb2
commit 851550c505

View File

@ -11,8 +11,11 @@ if [[ -n "$UNITY_LICENSING_SERVER" ]]; then
# Custom Unity License Server
#
echo "Adding licensing server config"
cat "$ACTION_FOLDER/services-config.json"
cp "$ACTION_FOLDER/services-config.json" "/Library/Application Support/Unity/config/services-config.json"
pushd "$ACTION_FOLDER"
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"
/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 '"')