add -size to hdiutil call, it seems its own size calculation is buggy and so it has been failing

Also re-add removed file, seem to work now.

hdiutil has *horrible* error reporting. You get back a number from 1 to
1000, with no indication of the problem. --verbose doesn't help.
So this is all guesswork.
This commit is contained in:
Joey Hess 2013-12-30 13:59:25 -04:00
parent f28efa5833
commit df3060cccb

View file

@ -154,14 +154,12 @@ osxapp: Build/Standalone Build/OSXMkLibs
# OSX looks in man dir nearby the bin # OSX looks in man dir nearby the bin
$(MAKE) install-mans DESTDIR="$(OSXAPP_BASE)/.." SHAREDIR="" PREFIX="" $(MAKE) install-mans DESTDIR="$(OSXAPP_BASE)/.." SHAREDIR="" PREFIX=""
# This file breaks hditul create
rm -f "$(OSXAPP_BASE)/../man/man1/git-annex-shell.1"
./Build/OSXMkLibs $(OSXAPP_BASE) ./Build/OSXMkLibs $(OSXAPP_BASE)
cd $(OSXAPP_DEST) && find . -type f > Contents/MacOS/git-annex.MANIFEST cd $(OSXAPP_DEST) && find . -type f > Contents/MacOS/git-annex.MANIFEST
cd $(OSXAPP_DEST) && find . -type l >> Contents/MacOS/git-annex.MANIFEST cd $(OSXAPP_DEST) && find . -type l >> Contents/MacOS/git-annex.MANIFEST
rm -f tmp/git-annex.dmg rm -f tmp/git-annex.dmg
hdiutil create -format UDBZ -srcfolder tmp/build-dmg \ hdiutil create -format UDBZ -size 640m -srcfolder tmp/build-dmg \
-volname git-annex -o tmp/git-annex.dmg -volname git-annex -o tmp/git-annex.dmg
# Must be run on a system with TH supported, and the same # Must be run on a system with TH supported, and the same