Skip to content

Commit

Permalink
Add support for the new craft blueprint options relating to override …
Browse files Browse the repository at this point in the history
…server urls

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Sep 27, 2024
1 parent 2fc6f28 commit 4c8b8e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions admin/osx/mac-crafter/Sources/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ struct Build: ParsableCommand {
@Option(name: [.long], help: "Sparkle package signing key.")
var sparklePackageSignKey: String?

@Option(name: [.long], help: "Override server url.")
var overrideServerUrl: String?

@Flag(help: "Reconfigure KDE Craft.")
var reconfigureCraft = false

Expand All @@ -101,6 +104,9 @@ struct Build: ParsableCommand {
@Flag(help: "Run a full rebuild.")
var fullRebuild = false

@Flag(help: "Force override server URL.")
var forceOverrideServerUrl = false

@Flag(help: "Create an installer package.")
var package = false

Expand Down Expand Up @@ -168,6 +174,11 @@ struct Build: ParsableCommand {
"\(craftBlueprintName).buildFileProviderModule=\(buildFileProviderModule ? "True" : "False")"
]

if let overrideServerUrl {
craftOptions.append("\(craftBlueprintName).overrideServerUrl=\(overrideServerUrl)")
craftOptions.append("\(craftBlueprintName).forceOverrideServerUrl=\(forceOverrideServerUrl ? "True" : "False")")
}

if !disableAutoUpdater {
print("Configuring Sparkle auto-updater.")

Expand Down

0 comments on commit 4c8b8e6

Please sign in to comment.