Skip to content

feat(desktop): Lens.app updates itself from each release - #352

Merged
adeelahmad merged 3 commits into
mainfrom
claude/project-thread-7f9uep
Oct 11, 2026
Merged

adeelahmad merged 3 commits into
mainfrom
claude/project-thread-7f9uep

Conversation

@adeelahmad

Copy link
Copy Markdown
Owner

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 is releases/latest/download/latest.json. When the TAURI_SIGNING_PRIVATE_KEY secret and that variable exist, the Desktop workflow builds the signed Lens-macOS-arm64.app.tar.gz, writes latest.json and 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 in desktop/README.md#updates.

🤖 Generated with Claude Code

https://claude.ai/code/session_014VrJQhkYVDyhgVQcok4neG


Generated by Claude Code

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
@adeelahmad adeelahmad self-assigned this Oct 11, 2026
@adeelahmad
adeelahmad merged commit 035ebda into main Oct 11, 2026
11 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-7f9uep branch October 11, 2026 04:07
@adeelahmad adeelahmad mentioned this pull request Oct 11, 2026
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>
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.

2 participants