fix: isolate Sparkle delegate conformance

main
Peter Steinberger 2025-12-23 03:28:39 +01:00
parent 3e88553d52
commit a938e9473b
1 changed files with 4 additions and 1 deletions

View File

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