Skip to content

feat: install, one line from a release - #82

Merged
adiled merged 1 commit into
mainfrom
install-script
Nov 9, 2026
Merged

adiled merged 1 commit into
mainfrom
install-script

Conversation

@adiled

@adiled adiled commented Nov 9, 2026

Copy link
Copy Markdown
Owner
curl -fsSL https://raw.githubusercontent.com/adiled/orchd/main/install | sh

install (POSIX sh, at the repo root, no extension)

  • Picks the tarball for this machine: x86_64-linux, aarch64-linux or aarch64-macos. Anything else is told to build from source.
  • Checks it against its .sha256. A mismatch installs nothing.
  • Installs into ~/.local/bin, replacing each binary with an atomic rename, so it's safe to run over a running orchd.
  • Settings: ORCHD_VERSION, ORCHD_INSTALL_DIR, ORCHD_DOWNLOAD_URL (a mirror), and --help.

Release

  • Each tarball now gets a .sha256, attached to the release.
  • CI runs the installer against each target's own tarball, over file://.

README: the install section is the one-liner, plus one line for building from source.

Checked locally with a real aarch64-macos tarball:

  • piped install under sh and dash;
  • upgrade over an existing install;
  • the installed plugins run, and orchd's signature is intact;
  • a tampered tarball is refused with nothing installed;
  • a release without binaries gives a clear error;
  • version URLs (0.5.0 and v0.5.0), an unknown argument, and --help.

The latest URL only resolves once 0.5.0 is released; earlier releases carry no binaries.

curl -fsSL .../install | sh fetches the release tarball for this machine,
checks it against its .sha256, and puts orchd, its rootstocks and orch in
~/.local/bin, replacing each binary atomically. Releases now carry a .sha256
per tarball, and CI runs the installer against each target's tarball.
@adiled
adiled merged commit d329aa4 into main Nov 9, 2026
3 checks 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.

1 participant