Skip to content

feat: add a curl install script - #71

Merged
rigomart merged 2 commits into
mainfrom
t3/curl-install-support
Nov 4, 2026
Merged

rigomart merged 2 commits into
mainfrom
t3/curl-install-support

Conversation

@rigomart

@rigomart rigomart commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Why

Installing without Homebrew meant picking an archive from the releases page and moving the binary by hand. A curl one-liner served from the site now does it.

What changed

  • curl -fsSL https://wt-dash.rigos.dev/install.sh | sh installs the latest release for the machine into ~/.local/bin, after checking it against the release's .sha256 file.
  • WT_DASH_VERSION pins a release and WT_DASH_INSTALL_DIR picks the folder. No sudo, no edits to shell startup files.
  • It warns when the folder isn't on PATH, another wt-dash comes first, or Worktrunk's wt is missing, and refuses musl Linux.
  • A build that can't run leaves the installed copy in place, and a cut-off download runs nothing.
  • The README and the landing page show the command. Left out: installing Worktrunk.

Decisions

  • Worktrunk only gets a warning, since installing it would mean running cargo or another installer for the user.
  • The latest version comes from the /releases/latest redirect, not the rate-limited GitHub API. curl only, no wget fallback.
  • WT_DASH_RELEASES_URL (mirrors, tests) is documented in the script's header only.

Blast radius

Only the landing page's install block changes existing code. If release asset names change, the script fails with the URL it tried.

Verification

  • Ran it against the real v0.1.1 release on macOS arm64 and in Debian arm64 and x64 containers. It installed and ran 0.1.1, and a rerun replaced it cleanly. Alpine exited 1 with the musl message.
  • tests/install.test.ts pipes the served script into sh against a fake releases server: latest, pinned, bad checksum, missing release, cut-off download, a build that can't run.
  • shellcheck -s sh passes. Not run: Intel Mac, Rosetta.

Screenshots

Before After
Landing page offers only the brew command Landing page shows the curl command under the brew one, with a link to the script

curl -fsSL https://wt-dash.rigos.dev/install.sh | sh installs the latest release into ~/.local/bin after checking its SHA-256 checksum. It warns when the folder isn't on PATH or Worktrunk is missing, refuses musl Linux, and keeps the installed copy when a new build can't run.
@rigomart
rigomart merged commit cfc169e into main Nov 4, 2026
5 checks passed
@rigomart
rigomart deleted the t3/curl-install-support branch November 4, 2026 21:42
rigomart pushed a commit that referenced this pull request Nov 15, 2026
🤖 I have created a release *beep* *boop*
---


## [0.2.0](v0.1.1...v0.2.0)
(2026-11-07)


### Features

* add a curl install script
([#71](#71))
([cfc169e](cfc169e))
* prove squash-merged branches through their GitHub pull requests
([#73](#73))
([fb18a21](fb18a21))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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