Skip to content

[2/6] Check app releases from Settings - #170

Closed
BinaryBearsLLC wants to merge 2 commits into
momenbasel:mainfrom
BinaryBearsLLC:Upgrade-02-updates
Closed

BinaryBearsLLC wants to merge 2 commits into
momenbasel:mainfrom
BinaryBearsLLC:Upgrade-02-updates

Conversation

@BinaryBearsLLC

@BinaryBearsLLC BinaryBearsLLC commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Part 2 of 6 — depends on #169. Please keep this PR in draft until the preceding parts are merged. Its current Files changed tab includes those earlier changes.

Review and merge order: #169 → #170 → #171 → #172 → #173 → #174.

Before merging: refresh this branch against the updated main, retaining only this part’s commit. If earlier parts were squash-merged or rebased, reapply only the linked commit onto updated main; do not merge the cumulative diff as-is.

Review this part’s commit.

What does this PR do?

Adds an on-demand app update check to Settings, alongside the installed version and build number.

  • Checks official GitHub app releases and excludes CLI releases, drafts and prereleases.
  • Shows update availability or a clear error, with download links and Homebrew instructions.
  • Reuses the main window when checking from the Updates menu. No update is installed automatically.

Testing

  • Tested on macOS Ventura 13.6 (22G120, Apple Silicon VM).
  • Host XCTest suite and universal arm64/x86_64 build on macOS 26.6.2.

106 XCTest tests passed, including version ordering, release filtering and request failures; universal build succeeded on macOS 26.6.2 (Apple Silicon). Tested on macOS Ventura 13.6 (22G120, Apple Silicon VM). GUI checks passed for a live GitHub release check, DMG/Homebrew instructions, copied command and menu routing.

Screenshots

Homebrew instructions

Release check download

@momenbasel

Copy link
Copy Markdown
Owner

Landed in #184 as 619dbf7 with your authorship. Verified that the only update-check call sites are the Updates menu item and the Settings button, nothing on launch, and that the html_url validation keeps a hostile JSON from redirecting the release link. One addition: the Sparkle package the old UpdateService used is removed from project.yml (5b1d989); this PR deleted its last import but left the 2.7 MB framework shipping inside the app with nothing referencing it. Not changed: the fourth tab is labelled Updates while it still carries the About content and shows the version twice; worth a small follow-up. Ships in 3.1.0.

@momenbasel momenbasel closed this Oct 8, 2026
0x00kh pushed a commit to 0x00kh/PureMac that referenced this pull request Oct 8, 2026
momenbasel#170 replaced the Sparkle-based UpdateService with a GitHub release check
and removed the last import, but the SwiftPM package and target dependency
stayed, so a 2.7 MB Sparkle.framework with its XPC services and Autoupdate
helper kept shipping inside PureMac.app with nothing referencing it. Sparkle
was already inert on main: no SUFeedURL was ever configured.
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