Merge pull request #7163 from nextcloud/feature/mac-crafter-override-server-url

Add support for the new craft blueprint options relating to override server urls
This commit is contained in:
Claudio Cambra 2024-09-30 00:06:48 +08:00 committed by GitHub
commit 5625df7304
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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