Skip to content

fix(update): check public GitHub releases and report failures - #183

Open
Consciencieux wants to merge 4 commits into
wflixu:devfrom
Consciencieux:fix/issue-178-update-check
Open

Consciencieux wants to merge 4 commits into
wflixu:devfrom
Consciencieux:fix/issue-178-update-check

Conversation

@Consciencieux

@Consciencieux Consciencieux commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

RClick 2.3.2 showed -1011 when GitHub's release API returned an error. On a shared network, the anonymous API quota could prevent RClick from finding an update even when GitHub Releases was still accessible.

  • Check GitHub's public Releases page for the latest stable version. When an update is available, RClick offers the ZIP and release notes for that version.
  • Show the reason when a check fails. Users can reopen the error from About, retry the check, or download manually. App Store builds open the App Store for updates.
  • Use the native macOS progress indicator size while checking.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 📝 Documentation update
  • ♻️ Refactoring
  • ⚡ Performance improvement
  • 🔧 Build/CI change
  • 🧪 Test addition/update

Related Issue

Related to #178. The report does not include the original HTTP response.

Screenshots

The old REST endpoint returned a simulated HTTP 429 in both runs. The updated app checked the live public release endpoint and found 2.3.4. Light mode is on the left and dark mode is on the right.

Before After
The update check reports the generic -1011 error The update check finds version 2.3.4 and offers release notes and installation

Testing

Manual Testing

  • Simulated a REST rate limit, received a live response from the public release endpoint, and verified that 2.3.2 sees an update and 2.3.4 reports up to date.

  • Downloaded the ZIP returned by the checker into a temporary directory. Confirmed its bundle version and verified the published SHA-256 and the app and extension code signatures.

  • Checked the update sheet in a native macOS window in light and dark mode.

  • Verified the App Store update destination with a simulated receipt.

  • App launches and appears in menu bar

  • Right-click menu works correctly in Finder

  • Dark mode looks correct in the update sheet

  • Settings persist across restarts

  • FinderSync extension loads properly

Build Verification

xcodebuild -project RClick.xcodeproj -scheme RClick -destination 'platform=macOS,arch=arm64' CODE_SIGNING_ALLOWED=NO build-for-testing
** TEST BUILD SUCCEEDED **

All 57 Swift Testing tests passed on macOS 27.3 with Xcode 27.2, including the update check with REST rate-limited and the invalid-response cases. The localization check passed.

Checklist

  • My code follows the project's Swift 6.2 conventions (see CONTRIBUTING.md)
  • All changed UI is SwiftUI
  • I have tested on macOS 15.6+
  • I have tested the update sheet with both light and dark mode
  • I have updated documentation if needed
  • My branch is up-to-date with dev

Additional Notes

The ZIP was verified in a temporary directory. Installation over an existing copy in /Applications was outside this test.

@Consciencieux Consciencieux changed the title fix(update): improve update check errors and manual downloads fix(update): query the public GitHub release endpoint Nov 30, 2026
@Consciencieux Consciencieux reopened this Nov 30, 2026
@Consciencieux Consciencieux reopened this Nov 30, 2026
@Consciencieux
Consciencieux marked this pull request as draft November 30, 2026 06:45
@Consciencieux Consciencieux changed the title fix(update): query the public GitHub release endpoint fix(update): check releases and restart safely after installation Nov 30, 2026
@Consciencieux
Consciencieux force-pushed the fix/issue-178-update-check branch from e70d332 to e5962de Compare November 30, 2026 07:32
@Consciencieux Consciencieux changed the title fix(update): check releases and restart safely after installation fix(update): check public GitHub releases and report failures Nov 30, 2026
@Consciencieux
Consciencieux marked this pull request as ready for review November 30, 2026 07:34
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.

1 participant