macOS: Fix creation of disk image with universal builds

Our universal Qt Creator build can be larger than 1 GB.
Increase maximum size of disk image.

Change-Id: I055e891f7da8e3c9db99a7b4b2d703cca594c22a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Eike Ziller
2021-09-06 16:22:15 +02:00
parent 442907bc13
commit af9408d9ae

View File

@@ -54,7 +54,7 @@ def main():
os.symlink('/Applications', os.path.join(tempdir, 'Applications')) os.symlink('/Applications', os.path.join(tempdir, 'Applications'))
shutil.copy(os.path.join(arguments.source_directory, 'LICENSE.GPL3-EXCEPT'), tempdir) shutil.copy(os.path.join(arguments.source_directory, 'LICENSE.GPL3-EXCEPT'), tempdir)
dmg_cmd = ['hdiutil', 'create', '-srcfolder', tempdir, '-volname', arguments.dmg_volumename, dmg_cmd = ['hdiutil', 'create', '-srcfolder', tempdir, '-volname', arguments.dmg_volumename,
'-format', 'UDBZ', arguments.target_diskimage, '-ov', '-scrub', '-size', '1g', '-verbose'] '-format', 'UDBZ', arguments.target_diskimage, '-ov', '-scrub', '-size', '1500m', '-verbose']
subprocess.check_call(dmg_cmd) subprocess.check_call(dmg_cmd)
# sleep a few seconds to make sure disk image is fully unmounted etc # sleep a few seconds to make sure disk image is fully unmounted etc
time.sleep(5) time.sleep(5)