aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/makedmg.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makedmg.py')
-rwxr-xr-xscripts/makedmg.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/makedmg.py b/scripts/makedmg.py
index 749a8585ba7..3e8d3f34b91 100755
--- a/scripts/makedmg.py
+++ b/scripts/makedmg.py
@@ -19,6 +19,8 @@ def parse_arguments():
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)
+ parser.add_argument('--ignore-codesign-paths', default=None, required=False, help='A list of paths separated by "," relative from the binary_directory. ' +
+ 'example ignore-codesign-paths for content that is already signed: "installed/Qt DesignStudio.app/Resources/qt6_design_studio_reduced_version"')
return parser.parse_args()
def main():
@@ -29,7 +31,10 @@ def main():
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))
+ if arguments.ignore_codesign_paths:
+ ignore_codesign_paths = arguments.ignore_codesign_paths.split(',')
+ ignore_codesign_paths = [os.path.join(tempdir_base, path) for path in ignore_codesign_paths]
+ common.codesign(os.path.join(tempdir, app_path), ignore_codesign_paths)
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,