From 0239ee3eae6470b1bf30a4843bf1d0f051d4f6ee Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 20 Nov 2024 18:15:32 +0800 Subject: [PATCH] Escape code sign entitlement paths in mac crafter Signed-off-by: Claudio Cambra --- admin/osx/mac-crafter/Sources/Utils/Codesign.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/osx/mac-crafter/Sources/Utils/Codesign.swift b/admin/osx/mac-crafter/Sources/Utils/Codesign.swift index 46a1cf5c4..dab7299bd 100644 --- a/admin/osx/mac-crafter/Sources/Utils/Codesign.swift +++ b/admin/osx/mac-crafter/Sources/Utils/Codesign.swift @@ -83,7 +83,7 @@ func codesignClientAppBundle( "\(frameworksPath)/QtWebEngineCore.framework/Versions/A/Helpers/QtWebEngineProcess.app" try codesign(identity: codeSignIdentity, path: qtWebEngineProcessPath, - options: "--timestamp --force --verbose=4 --options runtime --deep --entitlements \(qtWebEngineProcessPath)/Contents/Resources/QtWebEngineProcess.entitlements") + 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") @@ -120,7 +120,7 @@ func codesignClientAppBundle( encoding: .utf8) try codesign(identity: codeSignIdentity, path: appExtensionPath, - options: "--timestamp --force --verbose=4 --options runtime --deep --entitlements \(tmpEntitlementXmlPath)") + options: "--timestamp --force --verbose=4 --options runtime --deep --entitlements \"\(tmpEntitlementXmlPath)\"") } // Now we do the final codesign bit