Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

Debug builds don't start the Sparkle updater

David Skoland336c441d370b
diff --git a/Sources/HighballApp/HighballApp.swift b/Sources/HighballApp/HighballApp.swift
index a7256a5..45de4c6 100644
--- a/Sources/HighballApp/HighballApp.swift
+++ b/Sources/HighballApp/HighballApp.swift
@@ -100,7 +100,13 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
override init() {
let delegate = UpdaterDelegate()
updaterDelegate = delegate
- updaterController = SPUStandardUpdaterController(startingUpdater: true, updaterDelegate: delegate, userDriverDelegate: nil)
+ #if DEBUG
+ // A dev build is 0.0.0-dev, so any check would offer to replace it with the latest release.
+ let startUpdater = false
+ #else
+ let startUpdater = true
+ #endif
+ updaterController = SPUStandardUpdaterController(startingUpdater: startUpdater, updaterDelegate: delegate, userDriverDelegate: nil)
super.init()
}
/// Set from the App's onAppear so quit-time can reach the bottles.