servo: Merge #17161 - Set the initial disk image size for mac packages (from servo:jdm-patch-1); r=cbrewster
authorJosh Matthews <josh@joshmatthews.net>
Mon, 05 Jun 2017 16:41:10 -0700
changeset 410551 4117a726b0b4f9c685080dd0f31c14ed80b76e78
parent 410550 c93d5b222a0f8bf1b3834071558a26d185139372
child 410552 5e0d7d672b014f9d24e93c1fee9e56d5cc295a04
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscbrewster
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
servo: Merge #17161 - Set the initial disk image size for mac packages (from servo:jdm-patch-1); r=cbrewster Attempting to fix https://github.com/servo/servo/issues/16644 per https://apple.stackexchange.com/questions/156994/yosemite-hdiutil-create-failed-error-5341. Source-Repo: https://github.com/servo/servo Source-Revision: 5c3b9ef3a0db7aeaf76ede239bc3700369233e12
servo/python/servo/package_commands.py
--- a/servo/python/servo/package_commands.py
+++ b/servo/python/servo/package_commands.py
@@ -269,17 +269,21 @@ class PackageCommands(CommandBase):
             os.symlink('/Applications', path.join(dir_to_dmg, 'Applications'))
             dmg_path = path.join(target_dir, "servo-tech-demo.dmg")
 
             if path.exists(dmg_path):
                 print("Deleting existing dmg")
                 os.remove(dmg_path)
 
             try:
-                subprocess.check_call(['hdiutil', 'create', '-volname', 'Servo', dmg_path, '-srcfolder', dir_to_dmg])
+                subprocess.check_call(['hdiutil', 'create',
+                                       '-volname', 'Servo',
+                                       '-megabytes', '900',
+                                       dmg_path,
+                                       '-srcfolder', dir_to_dmg])
             except subprocess.CalledProcessError as e:
                 print("Packaging MacOS dmg exited with return value %d" % e.returncode)
                 return e.returncode
             print("Cleaning up")
             delete(dir_to_dmg)
             print("Packaged Servo into " + dmg_path)
 
             print("Creating brew package")