Repository navigation
Download and install Lyra updates automatically. - #103
Merged
Merged
Conversation
- Add an `updates` setting (auto, notify, off; default auto): auto downloads a new release in the background and installs it on the next restart. - Add a manual check (`updater:check`) and an Updates section in Settings → About with the status and Check now, Download or Restart to update. - Keep background downloads out of Activity until they're ready; read the Mac signature once, asynchronously. - Unit-test the update policy and the setting's parsing; add a UI smoke case.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lyra already checked GitHub's
releases/latestevery 4 hours, but only showed a notice. You had to click to download and then restart. This PR makes updating automatic and lets you control it:updatessetting (auto|notify|off, defaultauto):autodownloads a new release in the background (electron-updaterautoDownload) and installs it on the next quit or restart (autoInstallOnAppQuit). It never installs in the middle of a session.notifykeeps the old ask-first behaviour.offstops the timer, so Lyra only checks when you ask.updater:checkIPC channel (types, preload and handler) for the manual check.UpdateStatusgainsunavailable,checkingandlatest.spawnSyncon every action.updatePolicy.tsand has unit tests.No changes to the release workflow: it already publishes
latest*.ymland the blockmaps that electron-updater reads.Checks
pnpm typecheck(both tsconfigs),eslint,config:checkandvitest: 90 files, 670 tests passed. pnpm isn't on the dev machine's PATH, so I ran the same tools directly.minor)pnpm smoke:ui:ui-smoke: ok. The new case checks that a test run reportsunavailable, the default isauto,notifysaves and an unknown mode is refused.pnpm screenshot --reviewin light and dark mode.