Auto merge of #17161 - servo:jdm-patch-1, r=cbrewster

Set the initial disk image size for mac packages.

Attempting to fix https://github.com/servo/servo/issues/16644 per https://apple.stackexchange.com/questions/156994/yosemite-hdiutil-create-failed-error-5341.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17161)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-06-05 16:41:10 -07:00 committed by GitHub
commit 5c3b9ef3a0

View file

@ -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