mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Only create product path's directory if it doesn't exist already
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
3588c139b8
commit
d1cb170d9d
@ -203,8 +203,12 @@ struct MacCrafter: ParsableCommand {
|
||||
let clientAppDir = "\(clientBuildDir)/image-\(buildType)-master/\(appName).app"
|
||||
try codesignClientAppBundle(at: clientAppDir, withCodeSignIdentity: codeSignIdentity)
|
||||
|
||||
print("Placing Nextcloud Desktop Client in product directory...")
|
||||
try fm.createDirectory(atPath: productPath, withIntermediateDirectories: true, attributes: nil)
|
||||
print("Placing Nextcloud Desktop Client in \(productPath)...")
|
||||
if !fm.fileExists(atPath: productPath) {
|
||||
try fm.createDirectory(
|
||||
atPath: productPath, withIntermediateDirectories: true, attributes: nil
|
||||
)
|
||||
}
|
||||
try fm.copyItem(atPath: clientAppDir, toPath: "\(productPath)/\(appName).app")
|
||||
|
||||
print("Done!")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user