From 89b13285fe022cb9fed1c362825e076c9feb3ef4 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Sat, 28 Sep 2024 00:51:40 +0800 Subject: [PATCH] Codesign webengineprocess with correct entitlements on macOS with mac crafter Signed-off-by: Claudio Cambra --- admin/osx/mac-crafter/Sources/Utils/Codesign.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/osx/mac-crafter/Sources/Utils/Codesign.swift b/admin/osx/mac-crafter/Sources/Utils/Codesign.swift index 6961048132184..c72ca0d66ae2b 100644 --- a/admin/osx/mac-crafter/Sources/Utils/Codesign.swift +++ b/admin/osx/mac-crafter/Sources/Utils/Codesign.swift @@ -79,7 +79,9 @@ func codesignClientAppBundle( print("Code-signing QtWebEngineProcess...") let qtWebEngineProcessPath = "\(frameworksPath)/QtWebEngineCore.framework/Versions/A/Helpers/QtWebEngineProcess.app" - try codesign(identity: codeSignIdentity, path: qtWebEngineProcessPath) + try codesign(identity: codeSignIdentity, + path: qtWebEngineProcessPath, + options: "--timestamp --force --verbose=4 --options runtime --deep --entitlements \(qtWebEngineProcessPath)/Contents/Resources/QtWebEngineProcess.entitlements") print("Code-signing QtWebEngine...") try codesign(identity: codeSignIdentity, path: "\(frameworksPath)/QtWebEngineCore.framework")