Repository navigation
feat(app): update the desktop app in place from its install source - #71
Conversation
Check GitHub for a newer app-v* release on launch and show a toast; a button next to the SimUtil title reopens it. "Update & restart" upgrades through Homebrew, swaps the bundle from the DMG, runs the Windows installer silently, or replaces the AppImage, verifying downloads against checksums.txt, then relaunches. Progress shows in the toast and a success toast follows the restart. The running version comes from the bundle via package_info_plus.
The app-v0.3.1 draft release was never published, so its changes ship in 0.4.0.
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
⛔ Files ignored due to path filters: 1
📒 Files selected for processing: 16
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge OverviewNo code review findings raised on this PR. The change adds in-app update checking and installation for the desktop app (GitHub release check, Homebrew/DMG/Windows installer/AppImage installers, checksum verification against Files Reviewed (17 files)
Reviewed by free · Input: 158.4K · Output: 21K · Cached: 576.7K |
Description
In-app updates for the desktop app.
app-v*release (CLIv*tags, drafts and prereleases are skipped). When it is newer than the running version, a toast offers it; an arrow button next to the SimUtil title in the sidebar reopens the toast.brew upgrade --cask simutil-desktop, then relaunch.SimUtil-macos.dmg, copy the new bundle next to the old one while still running (a failure leaves the install untouched), then swap and relaunch after quitting./VERYSILENTonce the app has exited, then relaunch.$APPIMAGEand relaunch.checksums.txt.~/.simutil/desktop-version).package_info_plus, soapp/pubspec.yaml(or--build-name) is the single source.app-v0.3.1draft release was never published and has been deleted; its changelog entries are folded into 0.4.0.Tested on macOS with a release build run as 0.2.0: Homebrew (0.2.0 → 0.3.0) and DMG (0.2.0 → 0.3.0) updates both installed and relaunched; the manual channel opens the release page. Windows and AppImage paths are not yet tried on real machines.
Type of Change
Summary by CodeRabbit