mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
Make mac-related build options configurable in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
6bca337321
commit
5ad1a60b9e
1 changed files with 11 additions and 1 deletions
|
@ -64,6 +64,12 @@ struct MacCrafter: ParsableCommand {
|
|||
var sparkleDownloadUrl =
|
||||
"https://github.com/sparkle-project/Sparkle/releases/download/1.27.3/Sparkle-1.27.3.tar.xz"
|
||||
|
||||
@Option(name: [.long], help: "Build App Bundle.")
|
||||
var buildAppBundle = true
|
||||
|
||||
@Option(name: [.long], help: "Build File Provider Module.")
|
||||
var buildFileProviderModule = false
|
||||
|
||||
@Option(name: [.long], help: "Git clone command; include options such as depth.")
|
||||
var gitCloneCommand = "git clone --depth=1"
|
||||
|
||||
|
@ -123,7 +129,11 @@ struct MacCrafter: ParsableCommand {
|
|||
}
|
||||
}
|
||||
|
||||
var craftOptions = ["\(craftBlueprintName).srcDir=\(repoRootDir)"]
|
||||
var craftOptions = [
|
||||
"\(craftBlueprintName).srcDir=\(repoRootDir)",
|
||||
"\(craftBlueprintName).buildMacOSBundle=\(buildAppBundle ? "True" : "False")",
|
||||
"\(craftBlueprintName).buildFileProviderModule=\(buildFileProviderModule ? "True" : "False")"
|
||||
]
|
||||
|
||||
if buildAutoUpdater {
|
||||
print("Configuring Sparkle auto-updater.")
|
||||
|
|
Loading…
Reference in a new issue