Add option to create developer builds of client via mac crafter

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-11-08 14:56:02 +09:00
parent bf03dbb776
commit 62bc088ea1

View file

@ -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.")