Skip to content

Commit

Permalink
Add option to create developer builds of client via mac crafter
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Nov 15, 2024
1 parent bf03dbb commit 62bc088
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions admin/osx/mac-crafter/Sources/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

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

Expand Down

0 comments on commit 62bc088

Please sign in to comment.