зеркало из https://github.com/nextcloud/desktop.git
Merge pull request #7519 from nextcloud/bugfix/mac-crafter-codesign-paths-with-spaces
Ensure paths are passed properly escaped into codesign command in mac-crafter
This commit is contained in:
Коммит
8797243fd2
|
@ -36,7 +36,7 @@ func codesign(
|
|||
options: String = "--timestamp --force --preserve-metadata=entitlements --verbose=4 --options runtime --deep"
|
||||
) throws {
|
||||
print("Code-signing \(path)...")
|
||||
let command = "codesign -s \"\(identity)\" \(options) \(path)"
|
||||
let command = "codesign -s \"\(identity)\" \(options) \"\(path)\""
|
||||
guard shell(command) == 0 else {
|
||||
throw CodeSigningError.failedToCodeSign("Failed to code-sign \(path).")
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче