From: Claudio Cambra Date: Sat, 22 Jun 2024 08:41:22 +0000 (+0800) Subject: Always configure craft if first download and set to not reconfigure by default in... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~6^2~132 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7a74f68eb94ca00f4a30300d69fcea267780a932;p=nextcloud-desktop.git Always configure craft if first download and set to not reconfigure by default in mac crafter Signed-off-by: Claudio Cambra --- 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) {