aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2023-04-13 15:59:08 +0200
committerEike Ziller <eike.ziller@qt.io>2023-04-13 15:59:08 +0200
commit2bc37de42b5dd1f0d0a8cea29e5a2cc4926836b5 (patch)
treee613605a0c295a2af7010e92d7b5d412654bf137 /scripts
parentb1415a0ea58e0860c790b1b5ff5fbd3d4bfdd87a (diff)
parent02f2a93503a24d2da3b93db2cbfe8463627cf990 (diff)
Merge remote-tracking branch 'origin/10.0'
Conflicts: src/plugins/python/pipsupport.cpp src/plugins/qtsupport/exampleslistmodel.cpp src/plugins/qtsupport/examplesparser.cpp tests/auto/examples/tst_examples.cpp Change-Id: I00273622423fa99d41621969f6ecbbdaa0e18664
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build.py11
-rwxr-xr-xscripts/build_plugin.py7
2 files changed, 18 insertions, 0 deletions
diff --git a/scripts/build.py b/scripts/build.py
index d6a30a18ff..2fced683b1 100755
--- a/scripts/build.py
+++ b/scripts/build.py
@@ -8,6 +8,7 @@ from __future__ import print_function
import argparse
import collections
import os
+import shlex
import shutil
import common
@@ -43,6 +44,8 @@ def get_arguments():
# signing
parser.add_argument('--keychain-unlock-script',
help='Path to script for unlocking the keychain used for signing (macOS)')
+ parser.add_argument('--sign-command',
+ help='Command to use for signing (Windows). The installation directory to sign is added at the end. Is run in the CWD.')
# cdbextension
parser.add_argument('--python-path',
@@ -262,6 +265,14 @@ def zipPatternForApp(paths):
def package_qtcreator(args, paths):
+ if common.is_windows_platform() and args.sign_command:
+ command = shlex.split(args.sign_command)
+ if not args.no_qtcreator:
+ common.check_print_call(command + [paths.install])
+ common.check_print_call(command + [paths.wininterrupt_install])
+ if not args.no_cdb:
+ common.check_print_call(command + [paths.qtcreatorcdbext_install])
+
if not args.no_zip:
if not args.no_qtcreator:
common.check_print_call(['7z', 'a', '-mmt' + args.zip_threads,
diff --git a/scripts/build_plugin.py b/scripts/build_plugin.py
index 38d247d4d5..4f4ddfdcb0 100755
--- a/scripts/build_plugin.py
+++ b/scripts/build_plugin.py
@@ -9,6 +9,7 @@ import argparse
import collections
import glob
import os
+import shlex
import common
@@ -46,6 +47,9 @@ def get_arguments():
# signing
parser.add_argument('--keychain-unlock-script',
help='Path to script for unlocking the keychain used for signing (macOS)')
+ parser.add_argument('--sign-command',
+ help='Command to use for signing (Windows). The installation directory to sign is added at the end. Is run in the CWD.')
+
args = parser.parse_args()
args.with_debug_info = args.build_type == 'RelWithDebInfo'
return args
@@ -140,6 +144,9 @@ def build(args, paths):
def package(args, paths):
if not os.path.exists(paths.result):
os.makedirs(paths.result)
+ if common.is_windows_platform() and args.sign_command:
+ command = shlex.split(args.sign_command)
+ common.check_print_call(command + [paths.install])
common.check_print_call(['7z', 'a', '-mmt2', os.path.join(paths.result, args.name + '.7z'), '*'],
paths.install)
if os.path.exists(paths.dev_install): # some plugins might not provide anything in Devel