From: Claudio Cambra Date: Wed, 11 Sep 2024 15:26:30 +0000 (+0800) Subject: Use deep codesigning by default in mac crafter X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~6^2~25^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=12ba22f5c6667bdc21ca59c9a07b3376d7c94bf6;p=nextcloud-desktop.git Use deep codesigning by default in mac crafter Signed-off-by: Claudio Cambra --- diff --git a/admin/osx/mac-crafter/Sources/Utils/Codesign.swift b/admin/osx/mac-crafter/Sources/Utils/Codesign.swift index ccc6d191f..4e764d138 100644 --- a/admin/osx/mac-crafter/Sources/Utils/Codesign.swift +++ b/admin/osx/mac-crafter/Sources/Utils/Codesign.swift @@ -33,7 +33,7 @@ func isAppExtension(_ path: String) -> Bool { func codesign( identity: String, path: String, - options: String = "--timestamp --force --preserve-metadata=entitlements --verbose=4 --options runtime" + options: String = "--timestamp --force --preserve-metadata=entitlements --verbose=4 --options runtime --deep" ) throws { print("Code-signing \(path)...") let command = "codesign -s \"\(identity)\" \(options) \(path)" @@ -82,7 +82,7 @@ func codesignClientAppBundle( let sparkleFrameworkPath = "\(clientContentsDir)/Frameworks/Sparkle.framework" try codesign(identity: codeSignIdentity, path: "\(sparkleFrameworkPath)/Resources/Autoupdate.app/Contents/MacOS/*", - options: "--timestamp --force --verbose=4 --options runtime") + options: "--timestamp --force --verbose=4 --options runtime --deep") print("Re-codesigning Sparkle library...") try codesign(identity: codeSignIdentity, path: "\(sparkleFrameworkPath)/Sparkle") @@ -106,7 +106,7 @@ func codesignClientAppBundle( encoding: .utf8) try codesign(identity: codeSignIdentity, path: appExtensionPath, - options: "--timestamp --force --verbose=4 --options runtime --entitlements \(tmpEntitlementXmlPath)") + options: "--timestamp --force --verbose=4 --options runtime --deep --entitlements \(tmpEntitlementXmlPath)") } // Now we do the final codesign bit