Skip to content

Commit 4342277

Browse files
committed
fix(mac-crafter): Also sign nextcloudcmd in app bundle executables directory.
Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
1 parent 99eea65 commit 4342277

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

admin/osx/mac-crafter/Sources/Utils/Signer.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,17 +151,20 @@ enum Signer: Signing {
151151
.appendingPathComponent("Contents")
152152
.appendingPathComponent("MacOS")
153153

154+
dynamicLibraries.append(contentsOf: try findDynamicLibraries(at: binariesLocation))
155+
154156
let pluginsLocation = location
155157
.appendingPathComponent("Contents")
156158
.appendingPathComponent("PlugIns")
157159

158-
dynamicLibraries.append(contentsOf: try findDynamicLibraries(at: binariesLocation))
159160
dynamicLibraries.append(contentsOf: try findDynamicLibraries(at: pluginsLocation))
160161

161162
for dynamicLibrary in dynamicLibraries {
162163
await sign(at: dynamicLibrary, with: codeSignIdentity, entitlements: nil)
163164
}
164165

166+
await sign(at: binariesLocation.appendingPathComponent("nextcloudcmd"), with: codeSignIdentity, entitlements: nil)
167+
165168
guard let mainAppEntitlements = entitlements[location.lastPathComponent] else {
166169
throw MacCrafterError.signing("No entitlements provided for: \(location.path)")
167170
}

0 commit comments

Comments
 (0)