Skip to content

Commit 672bb75

Browse files
committed
adds _runMeFirst.command to macOS packages to escape translocation. closes #220
1 parent fe3a2b8 commit 672bb75

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
cd "$( dirname "${BASH_SOURCE[0]}" )"
3+
xattr -r -d com.apple.quarantine projectGenerator.app

scripts/osx/buildPG.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ sign_and_upload(){
2525
# Copy commandLine into electron .app
2626
cd ${pg_root}
2727
cp commandLine/bin/projectGenerator projectGenerator-$PLATFORM/projectGenerator.app/Contents/Resources/app/app/projectGenerator 2> /dev/null
28+
29+
# Copy in the terminal script which fixes app translocation
30+
cp scripts/osx/_macOSTranslocationFix.command projectGenerator-$PLATFORM/_runMeFirst.command
31+
chmod a+x projectGenerator-$PLATFORM/_runMeFirst.command
32+
2833
sed -i -e "s/osx/$PLATFORM/g" projectGenerator-$PLATFORM/projectGenerator.app/Contents/Resources/app/settings.json
2934

3035
echo "${TRAVIS_REPO_SLUG}/${TRAVIS_BRANCH}";

0 commit comments

Comments
 (0)