diff --git a/frontend/index.html b/frontend/index.html index 4a7530d5..1b9df434 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -294,9 +294,9 @@
diff --git a/scripts/osx/_macOSTranslocationFix.command b/scripts/osx/_macOSTranslocationFix.command new file mode 100755 index 00000000..f0e0cf22 --- /dev/null +++ b/scripts/osx/_macOSTranslocationFix.command @@ -0,0 +1,3 @@ +#!/bin/sh +cd "$( dirname "${BASH_SOURCE[0]}" )" +xattr -r -d com.apple.quarantine projectGenerator.app diff --git a/scripts/osx/buildPG.sh b/scripts/osx/buildPG.sh index be8a7a28..885d2367 100755 --- a/scripts/osx/buildPG.sh +++ b/scripts/osx/buildPG.sh @@ -25,6 +25,11 @@ sign_and_upload(){ # Copy commandLine into electron .app cd ${pg_root} cp commandLine/bin/projectGenerator projectGenerator-$PLATFORM/projectGenerator.app/Contents/Resources/app/app/projectGenerator 2> /dev/null + + # Copy in the terminal script which fixes app translocation + cp scripts/osx/_macOSTranslocationFix.command projectGenerator-$PLATFORM/_runMeFirst.command + chmod a+x projectGenerator-$PLATFORM/_runMeFirst.command + sed -i -e "s/osx/$PLATFORM/g" projectGenerator-$PLATFORM/projectGenerator.app/Contents/Resources/app/settings.json echo "${TRAVIS_REPO_SLUG}/${TRAVIS_BRANCH}";