diff options
author | konablend <[email protected]> | 2009-06-16 19:10:21 +0000 |
---|---|---|
committer | konablend <[email protected]> | 2009-06-16 19:10:21 +0000 |
commit | e75fe00dfa9c1c750b14e670f7f7b106feacd6a3 (patch) | |
tree | 87fdcdd7d9863bca624d631e9b149e6d07faa622 /pkg | |
parent | b89e9da706154a77cfc7414e45a9915a83db3caa (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')
-rw-r--r-- | pkg/darwin/module.defs | 3 | ||||
-rw-r--r-- | pkg/darwin/module.rules | 14 |
2 files changed, 13 insertions, 4 deletions
diff --git a/pkg/darwin/module.defs b/pkg/darwin/module.defs index 50d68cad8..33115a2a8 100644 --- a/pkg/darwin/module.defs +++ b/pkg/darwin/module.defs @@ -1,6 +1,9 @@ PKG.cli.dmg = $(PKG.out/)$(HB.name)-$(HB.version)-MacOSX.5_CLI_$(BUILD.machine).dmg PKG.gui.dmg = $(PKG.out/)$(HB.name)-$(HB.version)-MacOSX.5_GUI_$(BUILD.machine).dmg +PKG.cli.tmp.dmg = $(PKG.out/)$(HB.name)-$(HB.version)-MacOSX.5_CLI_$(BUILD.machine).tmp.dmg +PKG.gui.tmp.dmg = $(PKG.out/)$(HB.name)-$(HB.version)-MacOSX.5_GUI_$(BUILD.machine).tmp.dmg + STAGE.cli/ = $(BUILD/)stage/cli/ STAGE.gui/ = $(BUILD/)stage/gui/ 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/) |