Clone craft in mac builder script

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-06-19 18:26:58 +08:00 committed by Claudio Cambra
parent 1942bcf8d8
commit 84cc6f8ada

View file

@ -76,4 +76,13 @@ installIfMissing("python3", "brew install pyenv && pyenv install 3.12.4")
print("Build tooling configured.") print("Build tooling configured.")
print("Configuring KDE Craft.") print("Configuring KDE Craft.")
let fm = FileManager.default
let currentDir = fm.currentDirectoryPath
let craftDir = "\(currentDir)/craftmaster"
if fm.fileExists(atPath: craftDir) {
print("KDE Craft is already cloned.")
} else {
print("Cloning KDE Craft...")
shell("git clone -q --depth=1 https://invent.kde.org/packaging/craftmaster.git")
}