Skip to content

feat(install): one-liner install script for release binaries - #64

Merged
Exelord merged 1 commit into
mainfrom
claude/install-script
May 13, 2026
Merged

feat(install): one-liner install script for release binaries#64
Exelord merged 1 commit into
mainfrom
claude/install-script

Conversation

@Exelord

@Exelord Exelord commented May 13, 2026

Copy link
Copy Markdown
Member

Summary

Adds the standard pnpm / Bun / rustup-style one-liner install:

curl -fsSL https://raw.githubusercontent.com/vznjs/vx/main/install.sh | sh

Auto-detects platform (linux / darwin × x64 / arm64) and drops the matching binary at $HOME/.local/bin/vx. Overrides:

  • VX_INSTALL_DIR=/usr/local/bin — alternate destination
  • VX_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/amd64x64, aarch64arm64).
  • set -eu; rejects unsupported platforms with a clear error.
  • Atomic write (.tmpmv).
  • Prints export PATH=... hint if the install dir isn't on PATH.

README.md gains a top-level Install section with three options: the one-liner, per-asset curl, and from-source via Bun.

Test plan

  • bun run ci green
  • One-liner end-to-end will only work once the first release is published — the workflow attaches the binaries that install.sh downloads.

Generated by Claude Code

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.
@Exelord
Exelord merged commit 07ef676 into main May 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants