Skip to content

Commit

Permalink
Merge pull request JuliaLang#9018 from JuliaLang/sf/osxperms
Browse files Browse the repository at this point in the history
Fix OSX permissions
  • Loading branch information
staticfloat committed Nov 15, 2014
2 parents a7a4e96 + a910969 commit 4f7b787
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions contrib/mac/app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ dmg:
-codesign -s "AFB379C0B4CBD9DB9A762797FC2AB5460A2B0DBE" --deep ./dmg/Julia-$(VERSION_SUFFIX).app
-cp -f Julia.icns dmg/.VolumeIcon.icns
-ln -fs /Applications ./dmg/Applications
-chmod 775 ./dmg/Julia-$(VERSION_SUFFIX).app/Contents/MacOS/Julia
hdiutil create Julia-$(VERSION_SUFFIX).dmg -size 200m -ov -volname "Julia" -imagekey zlib-level=9 -srcfolder dmg
-chmod 755 ./dmg/Julia-$(VERSION_SUFFIX).app/Contents/MacOS/Julia
@echo "We're going to chown the .app file to root:admin now, which requires sudo. You may be asked for your password:"
sudo chown -R root:admin ./dmg/Julia-$(VERSION_SUFFIX).app
sudo hdiutil create Julia-$(VERSION_SUFFIX).dmg -size 200m -ov -volname "Julia" -imagekey zlib-level=9 -srcfolder dmg


clean:
rm -fr julia dmg *.dmg
@echo "We have to use sudo here to clean out folders owned by root. You may be asked for your password"
sudo rm -fr julia dmg *.dmg

0 comments on commit 4f7b787

Please sign in to comment.