aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2023-02-20 14:54:38 +0100
committerTim Jenssen <tim.jenssen@qt.io>2023-03-07 06:57:39 +0000
commita71421651190a7d2f3613f267f8233b45f6c374a (patch)
tree6b63b89cffbcf91b4012c45e9e55f24d076f43d9
parentd29ca4322fe338a46457a37860707060556bcbbc (diff)
makedmg: add dmg-size optionqds/v4.0.0
The dmg size for QtDesignStudio can be much bigger then the default size which is enough for QtCreator. Change-Id: I2a7cbe01ca05fc32bb3b6b5a82c1670f9703ae50 Reviewed-by: Eike Ziller <eike.ziller@qt.io> (cherry picked from commit e549ad4d01168226089dbaa993c3806d51084d68) Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rwxr-xr-xscripts/makedmg.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/makedmg.py b/scripts/makedmg.py
index 040e3ff991..749a8585ba 100755
--- a/scripts/makedmg.py
+++ b/scripts/makedmg.py
@@ -18,6 +18,7 @@ def parse_arguments():
parser.add_argument('dmg_volumename', help='volume name to use for the disk image')
parser.add_argument('source_directory', help='directory with the Qt Creator sources')
parser.add_argument('binary_directory', help='directory that contains the Qt Creator.app')
+ parser.add_argument('--dmg-size', default='1500m', required=False)
return parser.parse_args()
def main():
@@ -32,7 +33,7 @@ def main():
os.symlink('/Applications', os.path.join(tempdir, 'Applications'))
shutil.copy(os.path.join(arguments.source_directory, 'LICENSE.GPL3-EXCEPT'), tempdir)
dmg_cmd = ['hdiutil', 'create', '-srcfolder', tempdir, '-volname', arguments.dmg_volumename,
- '-format', 'UDBZ', arguments.target_diskimage, '-ov', '-scrub', '-size', '1500m', '-verbose']
+ '-format', 'UDBZ', arguments.target_diskimage, '-ov', '-scrub', '-size', arguments.dmg_size, '-verbose']
subprocess.check_call(dmg_cmd)
# sleep a few seconds to make sure disk image is fully unmounted etc
time.sleep(5)