Skip to content

Commit

Permalink
Merge pull request #434 from benoit-pierre/dmg_version
Browse files Browse the repository at this point in the history
osx: add version number to app/dmg filenames
  • Loading branch information
TheaMorin committed Mar 18, 2016
2 parents ba89777 + def8b3a commit 9d3cd22
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions osx/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ topdir = ..
builddir = $(topdir)/build
distdir = $(topdir)/dist

APP = $(distdir)/Plover.app
DMG = $(distdir)/Plover.dmg
VER := $(shell cd $(topdir) && python setup.py --version)
TMP_APP := $(distdir)/Plover.app
APP := $(distdir)/Plover-$(VER).app
DMG := $(distdir)/Plover-$(VER).dmg

.PHONY: all app dmg clean

Expand All @@ -18,10 +20,9 @@ dmg: $(DMG)

$(APP):
cd $(topdir) && $(PYTHON) setup.py py2app
zip -d $(APP)/Contents/Resources/lib/python2.7/site-packages.zip 'plover/assets/*'
ditto --arch x86_64 $(APP) $(APP:%.app=%Stripped.app)
rm -rf $(APP)
mv $(APP:%.app=%Stripped.app) $(APP)
zip -d $(TMP_APP)/Contents/Resources/lib/python2.7/site-packages.zip 'plover/assets/*'
ditto --arch x86_64 $(TMP_APP) $(APP)
rm -rf $(TMP_APP)

$(DMG): $(APP)
mkdir tmp
Expand Down

0 comments on commit 9d3cd22

Please sign in to comment.