From 026554dde39befa50fccd837ac6d5e069e01c033 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 0492d9fc527b8..dbf5272221e08 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!") } }