mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
Fix issue with placing app bundle in product directory if an existing build is there
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
8c7ac5a92d
commit
e1df119bf3
1 changed files with 3 additions and 0 deletions
|
@ -209,6 +209,9 @@ struct MacCrafter: ParsableCommand {
|
|||
atPath: productPath, withIntermediateDirectories: true, attributes: nil
|
||||
)
|
||||
}
|
||||
if fm.fileExists(atPath: "\(productPath)/\(appName).app") {
|
||||
try fm.removeItem(atPath: "\(productPath)/\(appName).app")
|
||||
}
|
||||
try fm.copyItem(atPath: clientAppDir, toPath: "\(productPath)/\(appName).app")
|
||||
|
||||
print("Done!")
|
||||
|
|
Loading…
Reference in a new issue