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:
1 parent
c0b7615590
commit
9bf9abb540
10 files changed
+319
-2
No files matched your search
@@ -12,7 +12,17 @@ Built with Bun and [OpenTUI](https://github.com/anomalyco/opentui) (React). t3tu
|
||||
|
||||
## Install
|
||||
|
||||
You need [Bun](https://bun.sh) 1.3.14 or later and a T3 Code server running on the same machine (or a token for a remote one; see [How it connects](#how-it-connects)).
|
||||
You need a T3 Code server running on the same machine (or a token for a remote one; see [How it connects](#how-it-connects)). On Linux or macOS:
|
||||
|
||||
```sh
|
||||
curl -fsSL https://raw.githubusercontent.com/callumalpass/t3tui/main/install.sh | sh
|
||||
```
|
||||
|
||||
That puts a single `t3tui` binary in `~/.local/bin` (set `T3TUI_INSTALL_DIR` to change it). It needs nothing else installed, not even Bun. `t3tui upgrade` replaces it with the latest release, and `t3tui version` says which you have. Each release notes the T3 Code version it was built against.
|
||||
|
||||
### Build from source
|
||||
|
||||
On other systems (Windows, or Linux with musl), or to run unreleased changes, you need [Bun](https://bun.sh) 1.3.14 or later:
|
||||
|
||||
```sh
|
||||
git clone --recurse-submodules https://github.com/callumalpass/t3tui.git && cd t3tui
|
||||
|
||||
Reference in new issue
Block a user