fix: isolate Sparkle delegate conformance

This commit is contained in:
Peter Steinberger
2025-12-23 03:28:39 +01:00
parent 3e88553d52
commit a938e9473b

View File

@@ -338,7 +338,7 @@ final class UpdateStatus {
import Sparkle
@MainActor
final class SparkleUpdaterController: NSObject, UpdaterProviding, SPUUpdaterDelegate {
final class SparkleUpdaterController: NSObject, UpdaterProviding {
private lazy var controller = SPUStandardUpdaterController(
startingUpdater: false,
updaterDelegate: self,
@@ -398,6 +398,9 @@ final class SparkleUpdaterController: NSObject, UpdaterProviding, SPUUpdaterDele
}
}
@MainActor
extension SparkleUpdaterController: SPUUpdaterDelegate {}
private func isDeveloperIDSigned(bundleURL: URL) -> Bool {
var staticCode: SecStaticCode?
guard SecStaticCodeCreateWithPath(bundleURL as CFURL, SecCSFlags(), &staticCode) == errSecSuccess,