From 62bc088ea1fdaef1b530de3339e20db958e5ed8a Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 8 Nov 2024 14:56:02 +0900 Subject: [PATCH] Add option to create developer builds of client via mac crafter Signed-off-by: Claudio Cambra --- admin/osx/mac-crafter/Sources/main.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/admin/osx/mac-crafter/Sources/main.swift b/admin/osx/mac-crafter/Sources/main.swift index 3d2f48f93a..d7e680a30f 100644 --- a/admin/osx/mac-crafter/Sources/main.swift +++ b/admin/osx/mac-crafter/Sources/main.swift @@ -110,6 +110,9 @@ struct Build: ParsableCommand { @Flag(help: "Create an installer package.") var package = false + @Flag(help: "Build in developer mode.") + var dev = false + mutating func run() throws { print("Configuring build tooling.") @@ -179,6 +182,11 @@ struct Build: ParsableCommand { craftOptions.append("\(craftBlueprintName).forceOverrideServerUrl=\(forceOverrideServerUrl ? "True" : "False")") } + if dev { + appName += "Dev" + craftOptions.append("\(craftBlueprintName).devMode=True") + } + if !disableAutoUpdater { print("Configuring Sparkle auto-updater.")