Merge pull request #7475 from nextcloud/feature/dev-builds-mac-crafter

This commit is contained in:
Claudio Cambra 2024-11-15 13:35:09 +08:00 committed by GitHub
commit 3078664a32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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