Release standalone binaries with a one-line installer

Installing meant Bun, a clone with the T3 Code submodule and a build. Now
a tag builds a binary per platform with bun build --compile, carrying
Bun's runtime and OpenTUI's native library, and publishes them as a
GitHub Release after opening each one's dashboard on its own OS.

install.sh picks the right binary and checks it against SHA256SUMS;
`t3tui upgrade` replaces an installed binary with the latest release and
`t3tui version` prints the version. `t3tui tmux` started its windows as
`bun <file>`, which a compiled binary can't do, so it now runs itself.
This commit is contained in:
callumalpass committed 2026-11-03 02:48:57 +11:00
1 parent c0b7615590
commit 9bf9abb540
10 files changed
+319 -2

No files matched your search

+12
View File
@@ -28,3 +28,15 @@ bun install && bun run typecheck && bun test
```
Type errors after a bump point at the protocol changes to adapt to.
## Releasing
Releases are standalone binaries built with `bun build --compile`, so users don't need Bun or a checkout. To cut one, bump `version` in `package.json`, commit, and push a matching tag:
```sh
git tag v0.1.0 && git push origin v0.1.0
```
The [Release workflow](../.github/workflows/release.yml) compiles linux-x64, linux-arm64, darwin-x64 and darwin-arm64 on one machine, opens each binary's dashboard on its own OS, and publishes them gzipped with a `SHA256SUMS` file, which `install.sh` and `t3tui upgrade` both check. Run the workflow by hand to build and check the binaries without releasing.
To build a binary locally, run `bun run compile` (this machine) or name targets, e.g. `bun run compile darwin-arm64`. Other platforms' targets need their OpenTUI packages: `bun install --os='*' --cpu='*'`. Binaries go in `release/`.