From 9f88eb03762b1495528d9575ba7697a6d6fbe50b Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 20 Jun 2024 18:09:48 +0800 Subject: [PATCH] Allow setting of build type 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 5c7a05d25..d3b615e7f 100644 --- a/admin/osx/mac-crafter/Sources/main.swift +++ b/admin/osx/mac-crafter/Sources/main.swift @@ -42,6 +42,9 @@ struct MacCrafter: ParsableCommand { @Option(name: [.long], help: "Nextcloud Desktop Client git url.") var clientBlueprintsGitUrl = "https://github.com/nextcloud/desktop-client-blueprints.git" + @Option(name: [.long], help: "Build type (e.g. Release, RelWithDebInfo, MinSizeRel, Debug).") + var buildType = "RelWithDebInfo" + mutating func run() throws { print("Configuring build tooling.") @@ -106,7 +109,7 @@ struct MacCrafter: ParsableCommand { } print("Crafting Nextcloud Desktop Client...") - shell("\(craftCommand) --src-dir \(repoRootDir) nextcloud-client") + shell("\(craftCommand) --src-dir \(repoRootDir) -i --build-type \(buildType) nextcloud-client") } } -- 2.30.2