Repository navigation
feat(desktop): download updates on their own and offer Update and restart in the tray - #595
Conversation
…tart in the tray Automatic checks now download the installer as soon as they find a release. Once it is ready, the tray menu offers Update and restart (Install update… where the app opens the installer). A download not installed is saved and installed by the next plain launch, before anything starts; hidden launches and launches with files or links offer it again instead.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c84bede5ec
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Test Results 2 191 files ± 0 2 219 suites ±0 57m 47s ⏱️ -13s Results for commit 31473e3. ± Comparison against base commit 4e6c7ae. This pull request removes 1 and adds 13 tests. Note that renamed tests count towards both. |
Summary
[desktop] checkForUpdates), a check that finds a release downloads its installer right away; the toast now comes once it's ready (Restart). If the download fails, the old Update / What's new toast shows, and the next day's check tries the download again. With checks off, Settings still asks before downloading.MenuAction.InstallUpdate. Strings are added in all 10 languages.updates/ready-update.properties(ReadyUpdate). The next plain launch installs it frommain()before anything else starts (installDownloadedUpdate), and the installer opens the app again. A hidden launch (login item, browser extension), a launch that brings files or links, or an installer the user has to finish just offers the update again. After an install that didn't take (pending-installis still there), it isn't tried again.Testing
./gradlew :app:desktop:test: newDesktopUpdaterTestcases cover auto-download, retrying a failed download, saving and restoring the ready update, andinstallDownloadedUpdate.DesktopTrayModelTestcovers the tray item.:app:shared:jvmTestpass.