From 7a74f68eb94ca00f4a30300d69fcea267780a932 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Sat, 22 Jun 2024 16:41:22 +0800 Subject: [PATCH] Always configure craft if first download and set to not reconfigure by default in mac crafter Signed-off-by: Claudio Cambra --- admin/osx/mac-crafter/Sources/main.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/osx/mac-crafter/Sources/main.swift b/admin/osx/mac-crafter/Sources/main.swift index 00b5a8950..c2d5b738c 100644 --- a/admin/osx/mac-crafter/Sources/main.swift +++ b/admin/osx/mac-crafter/Sources/main.swift @@ -49,8 +49,8 @@ struct MacCrafter: ParsableCommand { @Option(name: [.long], help: "Build type (e.g. Release, RelWithDebInfo, MinSizeRel, Debug).") var buildType = "RelWithDebInfo" - @Option(name: [.long], help: "Skip craft configuration.") - var skipCraftConfiguration = false + @Option(name: [.long], help: "Reconfigure craft.") + var reconfigureCraft = false @Option(name: [.long], help: "The application's branded name.") var appName = "Nextcloud" @@ -90,7 +90,7 @@ struct MacCrafter: ParsableCommand { let craftCommand = "python3 \(craftMasterPy) --config \(craftMasterIni) --target \(craftTarget) -c" - if !skipCraftConfiguration { + if !fm.fileExists(atPath: craftMasterDir) || reconfigureCraft { print("Configuring KDE Craft.") if fm.fileExists(atPath: craftMasterDir) { -- 2.30.2