feat: support for macOS xcarchive

This commit is contained in:
relikd
2025-11-05 18:18:08 +01:00
parent 36e30a1fdf
commit af9c398571
6 changed files with 64 additions and 32 deletions

View File

@@ -16,10 +16,8 @@ extension PreviewGenerator {
}
try! meta.zipFile!.unzipFile("Payload/*.app/\(bundleExecutable)", toDir: tmpPath)
return Entitlements(forBinary: tmpPath + "/" + bundleExecutable)
case .Archive:
return Entitlements(forBinary: meta.effectiveUrl!.path + "/" + bundleExecutable)
case .Extension:
return Entitlements(forBinary: meta.url.path + "/" + bundleExecutable)
case .Archive, .Extension:
return Entitlements(forBinary: meta.effectiveUrl("MacOS", bundleExecutable).path)
}
}