From 149e7d8676253911015384d5aeeaef69b5cc40ea Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 16 Jul 2024 15:54:44 +0800 Subject: [PATCH] Add option to set product path in mac-crafter Signed-off-by: Claudio Cambra --- admin/osx/mac-crafter/Sources/main.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/osx/mac-crafter/Sources/main.swift b/admin/osx/mac-crafter/Sources/main.swift index 0492d9fc5..dbf527222 100644 --- a/admin/osx/mac-crafter/Sources/main.swift +++ b/admin/osx/mac-crafter/Sources/main.swift @@ -209,6 +209,10 @@ struct Build: ParsableCommand { } try fm.copyItem(atPath: clientAppDir, toPath: "\(productPath)/\(appName).app") + print("Placing Nextcloud Desktop Client in product directory...") + try fm.createDirectory(atPath: productPath, withIntermediateDirectories: true, attributes: nil) + try fm.copyItem(atPath: clientAppDir, toPath: productPath) + print("Done!") } }