Skip to content

Commit

Permalink
Merge pull request #7163 from nextcloud/feature/mac-crafter-override-…
Browse files Browse the repository at this point in the history
…server-url

Add support for the new craft blueprint options relating to override server urls
  • Loading branch information
claucambra committed Sep 29, 2024
2 parents 8c5b6c8 + 0fe925f commit 5625df7
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 5625df7

Please sign in to comment.