Skip to content

app: update check and install from GitHub releases - #38

Merged
nooga merged 3 commits into
masterfrom
feat/auto-update
Nov 2, 2026
Merged

nooga merged 3 commits into
masterfrom
feat/auto-update

Conversation

@nooga

@nooga nooga commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Slab checks the latest GitHub release at launch and offers a newer one on the SLAB logo (green pulse, fading to UPDATE and the version). A click opens a card with the release notes.

  • Slab.app in a writable folder: UPDATE downloads Slab.zip, verifies the sha256 that release.sh now publishes (Slab.zip.sha256) and the bundle's signature, then RESTART NOW swaps the app and reopens it. Failures leave the installed app untouched.
  • Homebrew installs: EXIT & UPGRADE quits, runs brew upgrade --cask nooga/tap/slab and reopens Slab. The token is tap-qualified on purpose: Homebrew's own slab cask is the unrelated Slab knowledge-base app.
  • Dev builds, unwritable folders: the release page, with the reason shown.
  • SKIP remembers a version, a switch turns the launch check off (check_updates in settings.json), About has an UPDATES button, SLAB_NO_UPDATE=1 skips one run.

Docs: docs/47-updates.md. CHANGELOG line under Unreleased.

Tested against a fake local release (SLAB_UPDATE_API, a test hook): check, download, checksum and signature, swap, relaunch, and the brew path end to end. Unit tests cover version comparison, notes trimming and the release JSON.

Not tested: a real GitHub release (needs a release cut with the checksum asset, so the next one is the first real run), and Gatekeeper behavior on a second Mac since the app isn't notarized.

🤖 Generated with Claude Code

nooga and others added 3 commits November 2, 2026 06:44
A background check at launch finds a newer release; an UPDATE chip opens a
card with its notes. In Slab.app, UPDATE downloads Slab.zip, verifies the
checksum release.sh now publishes and the bundle's signature, and a detached
script swaps it in on RESTART NOW. Homebrew installs get the brew command.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The plate breathes green and the logo fades to UPDATE over the version;
a click opens the update card. Replaces the corner chip.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…k (docs/47)

Slab quits, a detached script runs brew upgrade --cask nooga/tap/slab and
reopens it. The token must name the tap: Homebrew's own "slab" cask is the
unrelated knowledge-base app and replaced Slab.app when tried unqualified.
The card also says why a copy can only offer the release page.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nooga
nooga merged commit d602c08 into master Nov 2, 2026
1 check passed
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.

1 participant