Skip to content

Commit

Permalink
add recommended Info.plist keys
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Sep 16, 2016
1 parent 55fa673 commit aeadb11
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions contrib/mac/app/Makefile
Expand Up @@ -16,6 +16,10 @@ DMG_NAME:=Julia-$(JULIA_VERSION_OPT_COMMIT).dmg
APP_NAME:=Julia-$(JULIA_VERSION_MAJOR_MINOR).app
VOL_NAME:=Julia-$(JULIA_VERSION_OPT_COMMIT)

APP_ID:=org.julialang.launcherapp
APP_COPYRIGHT:=© 2016 The Julia Project


all: clean $(DMG_NAME)

$(DMG_NAME): dmg/$(APP_NAME) dmg/.VolumeIcon.icns dmg/Applications
Expand All @@ -34,18 +38,19 @@ dmg/$(APP_NAME): startup.applescript julia.icns
osacompile -o $@ startup.applescript
rm $@/Contents/Resources/applet.icns
cp julia.icns $@/Contents/Resources/
plutil -replace CFBundleName -string "Julia" $@/Contents/Info.plist
plutil -replace CFBundleIconFile -string "julia.icns" $@/Contents/Info.plist
plutil -insert CFBundleVersion -string "$(JULIA_VERSION_OPT_COMMIT)" $@/Contents/Info.plist
plutil -replace CFBundleDevelopmentRegion -string "en" $@/Contents/Info.plist
plutil -insert CFBundleDisplayName -string "Julia" $@/Contents/Info.plist
plutil -replace CFBundleIconFile -string "julia.icns" $@/Contents/Info.plist
plutil -insert CFBundleIdentifier -string "$(APP_ID)" $@/Contents/Info.plist
plutil -replace CFBundleName -string "Julia" $@/Contents/Info.plist
plutil -insert CFBundleShortVersionString -string "$(JULIA_VERSION_MAJOR_MINOR_PATCH)" $@/Contents/Info.plist
plutil -insert CFBundleIdentifier -string "org.julialang.julia" $@/Contents/Info.plist
plutil -insert NSHumanReadableCopyright -string "© 2016 The Julia Project" $@/Contents/Info.plist
plutil -insert CFBundleVersion -string "$(JULIA_VERSION_OPT_COMMIT)" $@/Contents/Info.plist
plutil -insert NSHumanReadableCopyright -string "$(APP_COPYRIGHT)" $@/Contents/Info.plist
-mkdir -p $@/Contents/Resources/julia
make -C $(JULIAHOME) binary-dist
tar zxf $(JULIAHOME)/julia-*.tar.gz -C $@/Contents/Resources/julia --strip-components 1
-codesign -s "AFB379C0B4CBD9DB9A762797FC2AB5460A2B0DBE" --deep $@


ROOTFILES := $(shell ls -ld dmg/*.app *.dmg 2> /dev/null | awk '{print $$3}')
clean:
ifneq ($(filter root,$(ROOTFILES)),)
Expand Down

0 comments on commit aeadb11

Please sign in to comment.