install: curl-installer for the release binary (#64) - #79
Open
Flocqst wants to merge 1 commit into
Open
Conversation
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.
Summary
scripts/install.sh: POSIX sh installer for the prebuilt Rust client. Detects OS/arch, resolves the latest tag from the release redirect (orSHADE_TREE_VERSION), downloads the asset and its.sha256, verifies digest and file name, then installs to~/.local/binthrough an exclusive staging file. No sudo, https only, refuses to replace a symlink destination unlessSHADE_TREE_FORCE=1.SHADE_TREE_LIVE=1picks the-livevariant where published.scripts/install.selftest.mjs: 165 offline checks against a fakefile://release: all 7 targets by detection and by override, the 3 live targets, tampered/mismatched/missing.sha256failclosed, destination preflight, latest via a loopback server, error classification.
rust/INSTALL.md"One-line install",docs/CONFIG.mdentry.Names follow the current repo (
shade-tree,SHADE_TREE_*); the issue predates the rename. The README line sits after the agentshade-tree runblock, the equivalent of thergoe tryblock theissue mentions.
Verification
node scripts/install.selftest.mjs: 165/165npm test(Node 20): 106/106 node selftests, forge 124/124; fast lane 100/100npm run lint,sh -n,dash -n,git diff --check: clean-live, on aarch64-apple-darwinCloses #64