From a73877cece829e849ba57e73a214022e20aa6932 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 20 Jun 2024 18:11:07 +0800 Subject: [PATCH] Allow explicitly skipping code-signing of dependencies in mac crafter Signed-off-by: Claudio Cambra --- admin/osx/mac-crafter/Sources/main.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/osx/mac-crafter/Sources/main.swift b/admin/osx/mac-crafter/Sources/main.swift index d3b615e7f..ee4d7cc41 100644 --- a/admin/osx/mac-crafter/Sources/main.swift +++ b/admin/osx/mac-crafter/Sources/main.swift @@ -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" -- 2.30.2