Skip to content

Automatic Updates#118

Merged
dantheuber merged 2 commits into
mainfrom
auto-update
May 29, 2026
Merged

Automatic Updates#118
dantheuber merged 2 commits into
mainfrom
auto-update

Conversation

@dantheuber

Copy link
Copy Markdown
Owner

Summary

  • Automatic update checks on startup: Clipless now checks for updates in the background when it launches, downloads any available update silently, and prompts the user with a native "Restart Now / Later" dialog when the update is ready. All errors are swallowed silently so unsupported platforms (e.g. unsigned macOS builds) never surface failures to the user.

Added

  • New automaticUpdates user setting (default: on) exposed as a toggle in Application Settings.
  • runAutomaticUpdateCheck in src/main/updater wired into app startup, gated by the new setting and is.dev.
  • Native dialog.showMessageBox prompt with "Restart Now" / "Later" buttons shown when an update finishes downloading.
  • 20 new unit tests in src/main/updater/index.test.ts plus renderer tests for the new toggle.

Changed

  • autoInstallOnAppQuit is now true so picking "Later" still installs the update on the next app quit.
  • Updater helper text in UpdaterControl reflects the new automatic-check behavior.

Fixed

  • The persistent update-downloaded listener no longer calls autoUpdater.quitAndInstall() immediately, which was racing the manual "Check for Updates" flow and preventing the "Restart & Install" button from being clickable.

Removed

  • The 10-second setTimeout + checkForUpdatesAndNotify() from configureAutoUpdater (superseded by the new automatic-check flow).

@github-actions

Copy link
Copy Markdown

📊 Coverage Report

Metric Coverage
Statements 100%
Branches 100%
Functions 100%
Lines 100%

@github-actions

Copy link
Copy Markdown

🧪 E2E Test Results

18 passed, 0 failed, 0 skipped

Test Suite Result
App Launch
Clipboard
Context Menu
Image Clipboard
Quick Clips
Settings
Theme
Settings — Search Terms CRUD
Settings — Quick Tools CRUD
Settings — Templates CRUD
Tools Launcher — Pattern Scanning
Tools Launcher — Clip Templates

@dantheuber dantheuber merged commit be3bb55 into main May 29, 2026
3 checks passed
@dantheuber dantheuber deleted the auto-update branch May 29, 2026 19:35
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