mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-22 12:25:45 +03:00
Add offline flag to mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
f0166b29ee
commit
db0c577321
1 changed files with 5 additions and 1 deletions
|
@ -64,6 +64,9 @@ struct MacCrafter: ParsableCommand {
|
|||
@Flag(help: "Reconfigure KDE Craft.")
|
||||
var reconfigureCraft = false
|
||||
|
||||
@Flag(help: "Run build offline (i.e. do not update craft)")
|
||||
var offline = false
|
||||
|
||||
@Flag(help: "Build test suite.")
|
||||
var buildTests = false
|
||||
|
||||
|
@ -177,8 +180,9 @@ struct MacCrafter: ParsableCommand {
|
|||
}
|
||||
|
||||
let buildMode = fullRebuild ? "-i" : disableAppBundle ? "compile" : "--compile --install"
|
||||
let offlineMode = offline ? "--offline" : ""
|
||||
guard shell(
|
||||
"\(craftCommand) --buildtype \(buildType) \(buildMode) \(allOptionsString) \(craftBlueprintName)"
|
||||
"\(craftCommand) --buildtype \(buildType) \(buildMode) \(offlineMode) \(allOptionsString) \(craftBlueprintName)"
|
||||
) == 0 else {
|
||||
throw MacCrafterError.craftError("Error crafting Nextcloud Desktop Client.")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue