aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/makedmg.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makedmg.py')
-rwxr-xr-xscripts/makedmg.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/makedmg.py b/scripts/makedmg.py
index 33721f90a72..7911a1be000 100755
--- a/scripts/makedmg.py
+++ b/scripts/makedmg.py
@@ -34,7 +34,8 @@ import time
import common
def parse_arguments():
- parser = argparse.ArgumentParser(description='Create Qt Creator disk image, filtering out debug information files.')
+ parser = argparse.ArgumentParser(description='Create Qt Creator disk image, filtering out debug information files.',
+ epilog="To sign the contents before packaging on macOS, set the SIGNING_IDENTITY and optionally the SIGNING_FLAGS environment variables.")
parser.add_argument('target_diskimage', help='output .dmg file to create')
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')
@@ -47,6 +48,9 @@ def main():
tempdir = os.path.join(tempdir_base, os.path.basename(arguments.binary_directory))
try:
common.copytree(arguments.binary_directory, tempdir, symlinks=True, ignore=common.is_debug)
+ if common.is_mac_platform():
+ app_path = [app for app in os.listdir(tempdir) if app.endswith('.app')][0]
+ common.codesign(os.path.join(tempdir, app_path))
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,