aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrik Teivonen <patrik.teivonen@qt.io>2023-03-29 10:15:32 +0300
committerPatrik Teivonen <patrik.teivonen@qt.io>2023-04-28 07:29:54 +0000
commit7f290d9695648b16ab47b4e89177377d66ac0a27 (patch)
tree319595f4dd2d213a76dabb0441ad97cb86da0084
parentfc7986e6e8c1878a99db71545a6dfef8a6886b47 (diff)
sign_installer: Adjust logging verbosity level for codesign
Log the output from the codesign tool. Change verbosity level to 2 (3 made no difference). Change-Id: Id1f26adc2884a004a0e795bc8ff2a13eeae0988b Reviewed-by: Akseli Salovaara <akseli.salovaara@qt.io>
-rwxr-xr-xpackaging-tools/sign_installer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/packaging-tools/sign_installer.py b/packaging-tools/sign_installer.py
index 5864f74a0..fc40e1b51 100755
--- a/packaging-tools/sign_installer.py
+++ b/packaging-tools/sign_installer.py
@@ -200,7 +200,7 @@ def sign_mac_content(paths: List[Path], identity: Optional[str] = None) -> None:
for idx, path in enumerate(paths):
log.info("[%s/%s] Codesign: %s", idx, count, str(path))
cmd_args = [
- 'codesign', '--verbose=3', str(path),
+ 'codesign', '--verbose=2', str(path),
'-r', get_pkg_value("SIGNING_FLAGS"), # signing requirements
'-s', identity or get_pkg_value("SIGNING_IDENTITY"), # developer id identity
'-o', 'runtime', # enable hardened runtime, required for notarization
@@ -208,9 +208,9 @@ def sign_mac_content(paths: List[Path], identity: Optional[str] = None) -> None:
"--force" # resign all the code with different signature
]
try:
- run_cmd_silent(cmd=cmd_args)
+ run_cmd(cmd=cmd_args)
except CalledProcessError as err:
- raise Exception(f"Failed to codesign: {str(path)}") from err
+ raise Exception(f"Failed to codesign '{str(path)}': {str(err)}") from err
def create_mac_dmg(src_path: Path) -> Path: