feat(upgrade): add tiger upgrade self-update command#163
Open
aprimakina wants to merge 1 commit into
Open
Conversation
64b1f3d to
6ebfc38
Compare
Port Ghost's upgrade command to Tiger CLI. `tiger upgrade` (alias `update`) downloads the latest release archive for the current platform from releases_url, verifies its SHA-256 checksum, extracts the `tiger` binary, and atomically replaces the running binary in place. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
6ebfc38 to
56afd5c
Compare
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.
What
Adds a
tiger upgradeself-update command and reworks the update notifier to check on every invocation, reconciled so the notifier points users at the path that works for their install method.tiger upgrade: replaces the running binary with the latest release: checklatest.txt→ download the platform archive → verify SHA-256 → extract → atomic in-place swap.Breaking config change:
version_check_interval→version_check(bool, defaulttrue). A load-time migration preserves intent for existing configs (interval == 0stays disabled); explicitversion_check/TIGER_VERSION_CHECKwins.config set version_check_intervalnow errors.