mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 12:35:52 +03:00
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:
parent
bf03dbb776
commit
62bc088ea1
1 changed files with 8 additions and 0 deletions
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Reference in a new issue