diff --git a/admin/osx/mac-crafter/Sources/main.swift b/admin/osx/mac-crafter/Sources/main.swift index d7e680a30fe41..654954ec965c0 100644 --- a/admin/osx/mac-crafter/Sources/main.swift +++ b/admin/osx/mac-crafter/Sources/main.swift @@ -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) } }