From: Claudio Cambra Date: Thu, 21 Nov 2024 15:09:13 +0000 (+0800) Subject: Ensure path passed to codesigning is absolute when using mac-crafter codesign X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~5^2~18^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8d01462c80b29037ae86e864ebaeeec42bdbe9fa;p=nextcloud-desktop.git Ensure path passed to codesigning is absolute when using mac-crafter codesign Signed-off-by: Claudio Cambra --- diff --git a/admin/osx/mac-crafter/Sources/main.swift b/admin/osx/mac-crafter/Sources/main.swift index d7e680a30..654954ec9 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) } }