From 0fe925f978a2d1f613ccce9c466a315b9dc5a9d5 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 19 Sep 2024 20:05:28 +0800 Subject: [PATCH] Add support for the new craft blueprint options relating to override server urls Signed-off-by: Claudio Cambra --- admin/osx/mac-crafter/Sources/main.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/admin/osx/mac-crafter/Sources/main.swift b/admin/osx/mac-crafter/Sources/main.swift index de22b799e57b..3d2f48f93acb 100644 --- a/admin/osx/mac-crafter/Sources/main.swift +++ b/admin/osx/mac-crafter/Sources/main.swift @@ -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.")