Repository navigation
feat(desktop): Lens.app updates itself from each release - #352
Merged
Merged
Conversation
Tauri's updater checks the latest release's latest.json a minute after launch and every six hours, installs a newer Lens.app whose signature matches the public key built in (LENS_UPDATER_PUBKEY), and restarts quietly in the menu bar. The Desktop workflow signs the update and publishes latest.json when the repository has the update key. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014VrJQhkYVDyhgVQcok4neG
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014VrJQhkYVDyhgVQcok4neG
17 of 19 tasks
adeelahmad
added a commit
that referenced
this pull request
Oct 11, 2026
The README's Install section points Mac users with Apple silicon to Lens.app (#280, #352), labelled early since it isn't signed yet, and "In progress" drops it. Claude-Session: https://claude.ai/code/session_01HDx7PPUauyjMn1LZs8JAsS Co-authored-by: Adeel Ahmad <noreply@anthropic.com>
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.
Requested by Adeel · project thread
Before: Lens.app (#280) had to be downloaded again by hand for every new release.
After: Lens.app checks the latest release a minute after it starts and every six hours. When there's a newer version, it downloads it, checks the signature, replaces itself and restarts quietly in the menu bar while Lens keeps running. Check for App Updates in the menu does the same right away. A build without an update key turns this off and says so in the menu.
How: it uses Tauri's updater plugin. The public key is compiled in from
LENS_UPDATER_PUBKEY(a repo variable) and the endpoint isreleases/latest/download/latest.json. When theTAURI_SIGNING_PRIVATE_KEYsecret and that variable exist, the Desktop workflow builds the signedLens-macOS-arm64.app.tar.gz, writeslatest.jsonand attaches both to the release. Release builds already take the tag's version. It doesn't update while the web installer is open in the window. One-time key setup is indesktop/README.md#updates.🤖 Generated with Claude Code
https://claude.ai/code/session_014VrJQhkYVDyhgVQcok4neG
Generated by Claude Code