From d15dd26bda6c3bbcc417860735597b575a316544 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 19 Jun 2024 18:33:07 +0800 Subject: [PATCH] Craft the desktop client in the mac builder script Signed-off-by: Claudio Cambra --- admin/osx/craft-client.swift | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/admin/osx/craft-client.swift b/admin/osx/craft-client.swift index 76a03d8ba..9afd751e2 100644 --- a/admin/osx/craft-client.swift +++ b/admin/osx/craft-client.swift @@ -86,3 +86,22 @@ if fm.fileExists(atPath: craftDir) { print("Cloning KDE Craft...") shell("git clone -q --depth=1 https://invent.kde.org/packaging/craftmaster.git \(craftDir)") } + +print("Configuring Nextcloud Desktop Client blueprints for KDE Craft...") + +let repoRootDir = "\(currentDir)/../.." +let craftMasterIni = "\(repoRootDir)/craftmaster.ini" +let craftMasterPy = "\(craftDir)/CraftMaster.py" +let craftTarget = "macos-clang-arm64" +let craftCommand = "python3 \(craftMasterPy) --config \(craftMasterIni) --target \(craftTarget) -c" +let clientBlueprintsGitUrl = "https://github.com/nextcloud/desktop-client-blueprints.git" +shell("\(craftCommand) --add-blueprint-repository \(clientBlueprintsGitUrl)") + +print("Crafting KDE Craft...") +shell("\(craftCommand) craft") + +print("Crafting Nextcloud Desktop Client dependencies...") +shell("\(craftCommand) --install-deps nextcloud-client") + +print("Crafting Nextcloud Desktop Client...") +shell("\(craftCommand) --src-dir \(repoRootDir) nextcloud-client") -- 2.30.2