Skip to content

Commit

Permalink
Ensure path passed to codesigning is absolute when using mac-crafter …
Browse files Browse the repository at this point in the history
…codesign

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Nov 21, 2024
1 parent 1198839 commit 8d01462
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion admin/osx/mac-crafter/Sources/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,10 @@ struct Codesign: ParsableCommand {
var codeSignIdentity: String

mutating func run() throws {
try codesignClientAppBundle(at: appBundlePath, withCodeSignIdentity: codeSignIdentity)
let absolutePath = appBundlePath.hasPrefix("/")
? appBundlePath
: "\(FileManager.default.currentDirectoryPath)/\(appBundlePath)"
try codesignClientAppBundle(at: absolutePath, withCodeSignIdentity: codeSignIdentity)
}
}

Expand Down

0 comments on commit 8d01462

Please sign in to comment.