Allow explicitly skipping code-signing of dependencies in mac crafter
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 20 Jun 2024 10:11:07 +0000 (18:11 +0800)
committerClaudio Cambra <developer@claudiocambra.com>
Mon, 8 Jul 2024 07:41:45 +0000 (15:41 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
admin/osx/mac-crafter/Sources/main.swift

index d3b615e7f82aecae0faa2d6512cfdf4d153c3523..ee4d7cc41d0052a723e1b45b69c0a6928575bf41 100644 (file)
@@ -45,6 +45,9 @@ struct MacCrafter: ParsableCommand {
     @Option(name: [.long], help: "Build type (e.g. Release, RelWithDebInfo, MinSizeRel, Debug).")
     var buildType = "RelWithDebInfo"
 
+    @Option(name: [.long], help: "Skip code-signing dependency libraries and plugins.")
+    var skipDependencyCodeSigning = false
+
     mutating func run() throws {
         print("Configuring build tooling.")
 
@@ -85,7 +88,7 @@ struct MacCrafter: ParsableCommand {
         print("Crafting Nextcloud Desktop Client dependencies...")
         shell("\(craftCommand) --install-deps nextcloud-client")
 
-        if let codeSignIdentity {
+        if !skipDependencyCodeSigning, let codeSignIdentity {
             print("Code-signing Nextcloud Desktop Client libraries and frameworks...")
 
             let craftLibDir = "\(buildPath)/\(craftTarget)/lib"