aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2023-03-13 17:26:56 +0100
committerTim Jenssen <tim.jenssen@qt.io>2023-03-13 16:31:49 +0000
commitf34bd3309d77eca5a79adc931c1d34a72b4a6f4d (patch)
treee1dc1c64739405a41fb5aa79fe5afd6a47cc8e8c /scripts
parent8c5e77af3c38e1b79512f5b2031c6ea234748987 (diff)
scripts: add --keep-signed-content-at to makedmg.py
Change-Id: I3fd76cced3233afca90158717fbff400126a09c6 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/makedmg.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/makedmg.py b/scripts/makedmg.py
index 9159889bde..39cd6d1acf 100755
--- a/scripts/makedmg.py
+++ b/scripts/makedmg.py
@@ -21,6 +21,8 @@ def parse_arguments():
parser.add_argument('--dmg-size', default='1500m', required=False)
parser.add_argument('--license-replacement', default=None,
help='Absolute path to a license file which replaces the default LICENSE.GPL3-EXCEPT from Qt Creator source directory.')
+ parser.add_argument('--keep-signed-content-at', default=None,
+ help='For online installer we want to keep the signed .app without the dmg. This is used to create a 7z.')
return parser.parse_args()
def main():
@@ -43,6 +45,9 @@ def main():
# sleep a few seconds to make sure disk image is fully unmounted etc
time.sleep(5)
finally:
- shutil.rmtree(tempdir_base)
+ if arguments.keep_signed_content_at:
+ shutil.move(tempdir, arguments.keep_signed_content_at)
+ else:
+ shutil.rmtree(tempdir_base)
if __name__ == "__main__":
main()