Repository navigation
feat: one-line install.sh, published as a release asset - #290
Merged
Merged
Conversation
install.sh (POSIX sh) installs the Linux x86_64 or macOS arm64 release binary to ~/.local/bin after checking it against SHA256SUMS, runs axe skill install and points the user at their coding agent. Other platforms get the cargo install --tag fallback and a non-zero exit. The release publishes it, so releases/latest/download/install.sh works. CI runs shellcheck and scripts/test_install.sh against a local fixture. Co-Authored-By: Claude Opus 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.
Summary
install.sh(POSIX sh): picks the Linux x86_64 or macOS arm64 release tarball (latest, orAXE_VERSION), checks it against the release'sSHA256SUMS, installsaxeto~/.local/bin(orAXE_INSTALL_DIR; prints a PATH hint, never edits shell rc files), runsaxe skill install, and ends by pointing the user at their coding agent. Other platforms get thecargo install --locked --git ... --tag <tag> axe-osfallback and exit 1. No sudo.releases/latest/download/SHA256SUMS(asset names carry the tag), so no GitHub API call or redirect parsing.release.ymlpublishesinstall.shas a release asset (with its.sha256and aSHA256SUMSline), sohttps://github.com/popodidi/axe/releases/latest/download/install.shworks from the next release.rustjob):shellcheck, thenscripts/test_install.sh target/debug/axe: installs from afile://release fixture undershinto scratch HOMEs (latest;AXE_VERSION+AXE_INSTALL_DIR), checksaxe --versionand the skill, and that a bad checksum and an unsupported platform abort without installing.docs/user/getting-started/install.mdlead withcurl -fsSL https://axe-os.io/install.sh | sh;cargo installstays as the fallback.Test plan
shellcheck install.sh scripts/test_install.shcleanscripts/test_install.sh target/debug/axe: 4/4 oksh install.shin a scratch HOME against the live v0.6.2 release: installedaxe 0.6.2 (0add88f8293e)and the skill🤖 Generated with Claude Code