Skip to content

feat: one-line install script (curl | sh) - #276

Merged
dahai80 merged 2 commits into
mainfrom
feat/install-script
Nov 17, 2026
Merged

dahai80 merged 2 commits into
mainfrom
feat/install-script

Conversation

@dahai80

@dahai80 dahai80 commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Binary installer for macOS/Linux releases, replacing the stale upstream-branded source installer (free-code residue, git-clone based) with a sha256-verified binary install.

Features

  • Platform auto-detect (darwin/linux × arm64/x64); Windows assets intentionally out of scope (.zip, documented in script)
  • Latest tag: /releases/latest redirect primary, unauthenticated REST API fallback, tag-format guard against proxy-interfered redirects
  • sha256 verified against release SHA256SUMS.txt before install (fail-closed)
  • FUSION_CODE_INSTALL_DIR (default ~/.local/bin, no sudo) + PATH hint; pinned version arg (v-prefix optional); FUSION_CODE_RELEASE_BASE override for mirrors/testing; --connect-timeout 15 fast-fail downloads

README install section now leads with the one-liner:

curl -fsSL https://raw.githubusercontent.com/dahai80/fusion-code/main/install.sh | sh

Verification

  • Full e2e against a locally served fake release (real 70MB binary + SHA256SUMS): download, checksum ok, extract, install, fusion-code --version runs
  • Error paths: checksum mismatch exits 1, missing asset exits 1, both with clear messages
  • Latest-tag API fallback verified live (resolves v0.8.5)
  • Version arg without v prefix works; PATH hint fires on non-PATH dirs
  • Test artifacts cleaned up

Note: GitHub release CDN (release-assets.githubusercontent.com) is currently unreachable from the dev machine — script behavior verified via the local-release e2e above; live CDN download is environmental, not a script defect.

Platform-detecting installer for macOS/Linux release binaries:

- latest tag via /releases/latest redirect, REST API fallback
  (unauthenticated), tag-format guard against proxy-interfered redirects
- sha256 verified against the release SHA256SUMS.txt before install
- installs to FUSION_CODE_INSTALL_DIR (default ~/.local/bin, no sudo);
  PATH hint when the dir is not on PATH
- pinned version arg (v-prefix optional), FUSION_CODE_RELEASE_BASE
  override for mirrors/testing
- fast-fail downloads (--connect-timeout 15)

README install section leads with the one-liner; manual download table
kept below. Windows stays manual (.zip) — documented in the script.
@dahai80
dahai80 merged commit 6bdb00b into main Nov 17, 2026
2 checks passed
@dahai80
dahai80 deleted the feat/install-script branch November 17, 2026 02:26
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