From 3b20034ffae137fdf908b55cde391cb84d395981 Mon Sep 17 00:00:00 2001 From: Austin Smith Date: Tue, 11 Aug 2026 23:46:16 -0700 Subject: [PATCH] disable sparkle updater in debug builds debug builds carry the placeholder cfbundleversion of 1, so sparkle compares it against the appcast and offers every published release as an update, showing a downgrade prompt on dev builds. skip creating the updater controller entirely under debug; release builds are unchanged. --- BitDream/AppUpdater.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BitDream/AppUpdater.swift b/BitDream/AppUpdater.swift index 53041cc..047fa9d 100644 --- a/BitDream/AppUpdater.swift +++ b/BitDream/AppUpdater.swift @@ -28,6 +28,9 @@ final class AppUpdater: NSObject, ObservableObject { init(updatesEnabled: Bool = true) { super.init() + #if DEBUG + return + #else guard updatesEnabled else { return } updaterController = SPUStandardUpdaterController( @@ -37,6 +40,7 @@ final class AppUpdater: NSObject, ObservableObject { ) observeUpdaterState() refreshState() + #endif } func start() {