Skip to content

Commit a9fb825

Browse files
authored
Merge pull request #221 from ofTheo/macOS-fix-quarantine
adds _runMeFirst.command to macOS packages to escape translocation. closes #220
2 parents 85d0a82 + 6b47f08 commit a9fb825

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

frontend/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@
294294
</div>
295295
<div class="ui negative message" id="ofPathSierraMessage" style="display: none">
296296
<div class="header">
297-
Running on OSX Sierra or later for the first time?
297+
Running on macOS 10.12 or later for the first time?
298298
</div>
299-
<p>For security reasons, please set the OF path to root of openframeworks (ie, the folder which has "addons", "libs", in it)</p>
299+
<p>Please close the ProjectGenerator. Double click on _runMeFirst.command and then re-open the projectGenerator. If the OF path is not the root of the unzipped OF folder please set the OF path to this folder (ie, the folder which has "addons", "libs", in it)</p>
300300
</div>
301301
<div class="field">
302302
<div class="ui checkbox verbose">
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)