From 5af7a9c03c71cae313853a3550d34c9f4e42f4f8 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 31 Aug 2011 13:49:14 +0000 Subject: add Mac OS X .dmg instalelr file build rules svn path=/trunk/netsurf/; revision=12689 --- cocoa/Makefile.target | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cocoa') diff --git a/cocoa/Makefile.target b/cocoa/Makefile.target index 92e08739e..6f3d9e2b9 100644 --- a/cocoa/Makefile.target +++ b/cocoa/Makefile.target @@ -198,3 +198,13 @@ NetSurf.app/Contents/Info.plist: cocoa/res/NetSurf-Info.plist cocoa/Makefile.tar -e 's/$${NETSURF_VERSION}/$(VERSION_FULL)/' \ -e 's/$${NETSURF_SHORT_VERSION}/$(VERSION_MAJ).$(VERSION_MIN)/' \ < cocoa/res/NetSurf-Info.plist > NetSurf.app/Contents/Info.plist + +NetSurf.tmp.dmg: NetSurf.app + hdiutil create -size 8m -fs HFS+ -volname "NetSurf" $@ + hdiutil attach $@ + cp -a $^ /Volumes/NetSurf/ + hdiutil detach $$(echo $$(hdiutil attach $@ | cut -f 1) | cut -f 1 -d ' ') + +NetSurf.dmg: NetSurf.tmp.dmg + hdiutil convert $^ -format UDZO -o $@ + -- cgit v1.2.3