From e62f98d10031964f54dbcfedd699ac6786f8d234 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Sun, 4 Jun 2017 23:23:14 -0400 Subject: 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. --- python/servo/package_commands.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'python/servo/package_commands.py') 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 -- cgit v1.2.3