mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
feat(mac-crafter): Add entitlements path option to codesign command
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
67d99a46d3
commit
267d333055
@ -286,11 +286,19 @@ struct Codesign: ParsableCommand {
|
||||
@Option(name: [.short, .long], help: "Code signing identity for desktop client and libs.")
|
||||
var codeSignIdentity: String
|
||||
|
||||
@Option(name: [.short, .long], help: "Entitlements to apply to the app bundle.")
|
||||
var entitlementsPath: String?
|
||||
|
||||
mutating func run() throws {
|
||||
let absolutePath = appBundlePath.hasPrefix("/")
|
||||
? appBundlePath
|
||||
: "\(FileManager.default.currentDirectoryPath)/\(appBundlePath)"
|
||||
try codesignClientAppBundle(at: absolutePath, withCodeSignIdentity: codeSignIdentity)
|
||||
|
||||
try codesignClientAppBundle(
|
||||
at: absolutePath,
|
||||
withCodeSignIdentity: codeSignIdentity,
|
||||
usingEntitlements: entitlementsPath
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user