feat(install): one-liner install script for release binaries - #64
Merged
Conversation
curl -fsSL https://raw.githubusercontent.com/vznjs/vx/main/install.sh | sh - Auto-detects OS (linux / darwin) + arch (x64 / arm64) from uname. - Downloads vx-<os>-<arch> from the latest GitHub release into $HOME/.local/bin (override with VX_INSTALL_DIR). - VX_VERSION=vX.Y.Z pins a specific tag. - POSIX sh; no bashisms. set -eu. Atomic write via .tmp + mv. - Prints PATH hint if install_dir isn't on PATH already. README gains a top-level Install section with three options: the one-liner, a per-asset curl, and from-source via Bun.
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
Adds the standard pnpm / Bun / rustup-style one-liner install:
curl -fsSL https://raw.githubusercontent.com/vznjs/vx/main/install.sh | shAuto-detects platform (linux / darwin × x64 / arm64) and drops the matching binary at
$HOME/.local/bin/vx. Overrides:VX_INSTALL_DIR=/usr/local/bin— alternate destinationVX_VERSION=v0.1.2— pin a specific tag (default: latest)What lands
install.sh(~50 lines, POSIX sh, no bashisms):uname→ normalize OS/arch (x86_64/amd64→x64,aarch64→arm64).set -eu; rejects unsupported platforms with a clear error..tmp→mv).export PATH=...hint if the install dir isn't on PATH.README.mdgains a top-level Install section with three options: the one-liner, per-assetcurl, and from-source via Bun.Test plan
bun run cigreeninstall.shdownloads.Generated by Claude Code