summaryrefslogtreecommitdiffstats
path: root/pkg/darwin/module.rules
diff options
context:
space:
mode:
authorkonablend <[email protected]>2009-06-16 19:10:21 +0000
committerkonablend <[email protected]>2009-06-16 19:10:21 +0000
commite75fe00dfa9c1c750b14e670f7f7b106feacd6a3 (patch)
tree87fdcdd7d9863bca624d631e9b149e6d07faa622 /pkg/darwin/module.rules
parentb89e9da706154a77cfc7414e45a9915a83db3caa (diff)
BuildSystem: osx packaging updated to create .dmg in 2 passes; results in ~9% filesize reduction.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2543 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'pkg/darwin/module.rules')
-rw-r--r--pkg/darwin/module.rules14
1 files changed, 10 insertions, 4 deletions
diff --git a/pkg/darwin/module.rules b/pkg/darwin/module.rules
index bef593bf3..f6aa2d610 100644
--- a/pkg/darwin/module.rules
+++ b/pkg/darwin/module.rules
@@ -2,13 +2,19 @@ pkg.create:: $(PKG.cli.dmg) $(PKG.gui.dmg)
$(PKG.cli.dmg): | $(dir $(PKG.cli.dmg))
$(PKG.cli.dmg): | $(STAGE.cli/)
- hdiutil create -srcfolder $(STAGE.cli/) -format UDBZ -mode 755 \
- -volname $(basename $(notdir $@)) $@
+ hdiutil create -srcfolder $(STAGE.cli/) -format UDRO -mode 755 \
+ -volname $(basename $(notdir $@)) \
+ -ov $(PKG.cli.tmp.dmg)
+ hdiutil convert -format UDBZ -o $@ $(PKG.cli.tmp.dmg)
+ $(RM.exe) $(PKG.cli.tmp.dmg)
$(PKG.gui.dmg): | $(dir $(PKG.gui.dmg))
$(PKG.gui.dmg): | $(STAGE.gui/)
- hdiutil create -srcfolder $(STAGE.gui/) -format UDBZ -mode 755 \
- -volname $(basename $(notdir $@)) $@
+ hdiutil create -srcfolder $(STAGE.gui/) -format UDRO -mode 755 \
+ -volname $(basename $(notdir $@)) \
+ -ov $(PKG.gui.tmp.dmg)
+ hdiutil convert -format UDBZ -o $@ $(PKG.gui.tmp.dmg)
+ $(RM.exe) $(PKG.gui.tmp.dmg)
pkg.cli.clean:
$(RM.exe) -fr $(STAGE.cli/)