Add option to build tests or not in mac crafter

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-06-23 17:45:52 +08:00 коммит произвёл Claudio Cambra
Родитель 9025be29a4
Коммит 942cc09e16
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -76,6 +76,9 @@ struct MacCrafter: ParsableCommand {
@Option(name: [.long], help: "Run a full rebuild.")
var fullRebuild = false
@Option(name: [.long], help: "Build test suite.")
var buildTests = true
mutating func run() throws {
print("Configuring build tooling.")
@ -134,6 +137,7 @@ struct MacCrafter: ParsableCommand {
var craftOptions = [
"\(craftBlueprintName).srcDir=\(repoRootDir)",
"\(craftBlueprintName).buildTests=\(buildTests ? "True" : "False")",
"\(craftBlueprintName).buildMacOSBundle=\(buildAppBundle ? "True" : "False")",
"\(craftBlueprintName).buildFileProviderModule=\(buildFileProviderModule ? "True" : "False")"
]