fix: isolate Sparkle delegate conformance
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user