fix: isolate Sparkle delegate conformance
parent
3e88553d52
commit
a938e9473b
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue