teach the makefile to generate a .dmg file for the OSX app, the licenses and basic readme's still needs to be copied into the tmp/build-dmg directory.
This commit is contained in:
parent
a41210ece6
commit
ad5b35026e
1 changed files with 9 additions and 2 deletions
11
Makefile
11
Makefile
|
@ -133,14 +133,14 @@ sdist: clean $(mans)
|
|||
hackage: sdist
|
||||
@cabal upload dist/*.tar.gz
|
||||
|
||||
OSXAPP_DEST=tmp/git-annex.app
|
||||
OSXAPP_DEST=$(GIT_ANNEX_TMP_BUILD_DIR)/build-dmg/git-annex.app
|
||||
OSXAPP_BASE=$(OSXAPP_DEST)/Contents/MacOS
|
||||
THIRDPARTY_BINS=git curl lsof xargs rsync uuid wget gpg \
|
||||
sha1sum sha224sum sha256sum sha384sum sha512sum
|
||||
|
||||
osxapp: $(bins)
|
||||
rm -rf "$(OSXAPP_DEST)"
|
||||
install -d tmp
|
||||
install -d $(GIT_ANNEX_TMP_BUILD_DIR)/build-dmg
|
||||
cp -R ui-macos/git-annex.app "$(OSXAPP_DEST)"
|
||||
|
||||
install -d "$(OSXAPP_BASE)/bin"
|
||||
|
@ -165,4 +165,11 @@ osxapp: $(bins)
|
|||
sort "$(OSXAPP_BASE)/libdirs.tmp" | uniq > "$(OSXAPP_BASE)/libdirs"
|
||||
rm -f "$(OSXAPP_BASE)/libdirs.tmp"
|
||||
|
||||
tmp/git-annex.dmg: osxapp
|
||||
hdiutil create -size 640m -format UDRW -srcfolder $(GIT_ANNEX_TMP_BUILD_DIR)/build-dmg \
|
||||
-volname git-annex -o tmp/git-annex.dmg
|
||||
|
||||
tmp/git-annex.dmg.bz2: tmp/git-annex.dmg
|
||||
bzip2 tmp/git-annex.dmg
|
||||
|
||||
.PHONY: $(bins) test install
|
||||
|
|
Loading…
Reference in a new issue