Skip to content

Test PR - Ignore#118

Closed
NullPointerDepressiveDisorder wants to merge 1 commit intomainfrom
fix-sparkle-update-loop-9379519425425946507
Closed

Test PR - Ignore#118
NullPointerDepressiveDisorder wants to merge 1 commit intomainfrom
fix-sparkle-update-loop-9379519425425946507

Conversation

@NullPointerDepressiveDisorder
Copy link
Owner

@NullPointerDepressiveDisorder NullPointerDepressiveDisorder commented Mar 5, 2026

No description provided.

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.
Copilot AI review requested due to automatic review settings March 5, 2026 22:38
@NullPointerDepressiveDisorder NullPointerDepressiveDisorder deleted the fix-sparkle-update-loop-9379519425425946507 branch March 5, 2026 22:40
Repository owner deleted a comment from google-labs-jules bot Mar 5, 2026
@NullPointerDepressiveDisorder NullPointerDepressiveDisorder changed the title Fix infinite update loop in Sparkle Test PR - Ignore Mar 5, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the app’s bundle versioning to prevent Sparkle from repeatedly offering an update that is already installed.

Changes:

  • Updates CFBundleVersion in Info.plist to reference a build setting macro instead of a hard-coded value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>$(MARKETING_VERSION)</string>
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CFBundleVersion is Apple’s build number and is expected to be a monotonically increasing (typically numeric) value; using $(MARKETING_VERSION) can break this expectation (e.g., if the marketing version includes non-numeric suffixes or doesn’t change between builds). Prefer setting CFBundleVersion to $(CURRENT_PROJECT_VERSION) and, if you truly need them to match for Sparkle, set CURRENT_PROJECT_VERSION to the desired value in Build Settings (or configure Sparkle/appcast to compare against the intended key).

Suggested change
<string>$(MARKETING_VERSION)</string>
<string>$(CURRENT_PROJECT_VERSION)</string>

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants