diff options
author | Josh Matthews <josh@joshmatthews.net> | 2017-06-04 23:23:14 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2017-06-05 17:42:03 -0400 |
commit | e62f98d10031964f54dbcfedd699ac6786f8d234 (patch) | |
tree | 097465100a7c687df13031126be22da384b2e39d /python/servo/package_commands.py | |
parent | c260c6ede0988f331011f33485964775e1f3a7f9 (diff) | |
download | servo-e62f98d10031964f54dbcfedd699ac6786f8d234.tar.gz servo-e62f98d10031964f54dbcfedd699ac6786f8d234.zip |
Set the initial disk image size for mac packages.
Various stackoverflow answers suggest that setting an initial size can avoid errors while resizing the disk during the process of creating it.
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r-- | python/servo/package_commands.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py index 6debb8a26fb..4bcbd73926d 100644 --- a/python/servo/package_commands.py +++ b/python/servo/package_commands.py @@ -274,7 +274,11 @@ class PackageCommands(CommandBase): 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 |