mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
Add convenience method to save the entitlements of a bundle to a file as XML
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
e1df119bf3
commit
76fbf012ea
1 changed files with 7 additions and 0 deletions
|
@ -56,6 +56,13 @@ func recursivelyCodesign(path: String, identity: String) throws {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func saveCodesignEntitlements(target: String, path: String) throws {
|
||||||
|
let command = "codesign -d --entitlements \(path) --xml \(target)"
|
||||||
|
guard shell(command) == 0 else {
|
||||||
|
throw CodeSigningError.failedToCodeSign("Failed to save entitlements for \(target).")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func codesignClientAppBundle(
|
func codesignClientAppBundle(
|
||||||
at clientAppDir: String, withCodeSignIdentity codeSignIdentity: String
|
at clientAppDir: String, withCodeSignIdentity codeSignIdentity: String
|
||||||
) throws {
|
) throws {
|
||||||
|
|
Loading…
Reference in a new issue