Merge pull request #7529 from nextcloud/bugfix/mac-crafter-escape-entitlement-paths

Escape code sign entitlement paths in mac crafter
This commit is contained in:
Claudio Cambra 2024-11-20 18:17:02 +08:00 committed by GitHub
commit c465b7de85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,7 +83,7 @@ func codesignClientAppBundle(
"\(frameworksPath)/QtWebEngineCore.framework/Versions/A/Helpers/QtWebEngineProcess.app" "\(frameworksPath)/QtWebEngineCore.framework/Versions/A/Helpers/QtWebEngineProcess.app"
try codesign(identity: codeSignIdentity, try codesign(identity: codeSignIdentity,
path: qtWebEngineProcessPath, 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...") print("Code-signing QtWebEngine...")
try codesign(identity: codeSignIdentity, path: "\(frameworksPath)/QtWebEngineCore.framework") try codesign(identity: codeSignIdentity, path: "\(frameworksPath)/QtWebEngineCore.framework")
@ -120,7 +120,7 @@ func codesignClientAppBundle(
encoding: .utf8) encoding: .utf8)
try codesign(identity: codeSignIdentity, try codesign(identity: codeSignIdentity,
path: appExtensionPath, 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 // Now we do the final codesign bit