From 2c267b333b990b1ec0fa4056d3076db5695ea193 Mon Sep 17 00:00:00 2001
From: NullPointerDepressiveDisorder
<96403086+NullPointerDepressiveDisorder@users.noreply.github.com>
Date: Thu, 5 Mar 2026 22:38:49 +0000
Subject: [PATCH] Fix infinite update loop in Sparkle
This commit updates `CFBundleVersion` in `MiddleDrag/Info.plist` to use `$(MARKETING_VERSION)` instead of a hardcoded `1`. Sparkle compares the local build version (`CFBundleVersion`) against the appcast version. With a hardcoded value of `1`, Sparkle was constantly perceiving that an update was available, even when the marketing versions matched, creating an endless update loop. By setting `CFBundleVersion` to match the `MARKETING_VERSION`, Sparkle correctly identifies when the application is up-to-date.
---
MiddleDrag/Info.plist | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MiddleDrag/Info.plist b/MiddleDrag/Info.plist
index de0ff41..394ec81 100644
--- a/MiddleDrag/Info.plist
+++ b/MiddleDrag/Info.plist
@@ -19,7 +19,7 @@
CFBundleShortVersionString
$(MARKETING_VERSION)
CFBundleVersion
- 1
+ $(MARKETING_VERSION)
LSMinimumSystemVersion
$(MACOSX_DEPLOYMENT_TARGET)
LSUIElement