Repository navigation
app: update check and install from GitHub releases - #38
Merged
Merged
Conversation
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>
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.
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.
brew upgrade --cask nooga/tap/slaband reopens Slab. The token is tap-qualified on purpose: Homebrew's ownslabcask is the unrelated Slab knowledge-base app.check_updatesin settings.json), About has an UPDATES button,SLAB_NO_UPDATE=1skips 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