Skip to content

A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.

build: ship thinkterm-tailnet with the mux server

RoversX1ef9ff8aa210
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7c563d01..67401321 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -353,6 +353,7 @@ jobs:
-p wezterm-gui \
-p wezterm-mux-server \
-p thinkterm-plugin-server \
+ -p thinkterm-tailnet-node \
-p strip-ansi-escapes
- name: Fetch the browser bundle
@@ -612,6 +613,7 @@ jobs:
-p wezterm-gui \
-p wezterm-mux-server \
-p thinkterm-plugin-server \
+ -p thinkterm-tailnet-node \
-p strip-ansi-escapes
- name: Fetch the browser bundle
diff --git a/README.de-DE.md b/README.de-DE.md
index 095cd9b4..0c0b0d4a 100644
--- a/README.de-DE.md
+++ b/README.de-DE.md
@@ -133,7 +133,7 @@ Für einen Desktop-Build unter macOS oder Linux installierst du Rust und die Bui
git clone --recursive https://github.com/RoversX/ThinkTerm.git
cd ThinkTerm
./get-deps
-cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server
+cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server -p thinkterm-tailnet-node
```
Die ausführbaren Dateien liegen anschließend unter `target/release`. Quellcodestruktur und Entwicklungsablauf stehen im [Leitfaden für Beiträge](CONTRIBUTING.md). Das [Web-Build-Skript](ci/build-web.sh) erstellt die separaten Web-Ressourcen. Die mobilen Builds starten über [ios/build.sh](ios/build.sh) und [android/build.sh](android/build.sh).
diff --git a/README.fr-FR.md b/README.fr-FR.md
index 038f9f8f..b9539bb0 100644
--- a/README.fr-FR.md
+++ b/README.fr-FR.md
@@ -133,7 +133,7 @@ Pour compiler l'application de bureau sur macOS ou Linux, installez Rust et les
git clone --recursive https://github.com/RoversX/ThinkTerm.git
cd ThinkTerm
./get-deps
-cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server
+cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server -p thinkterm-tailnet-node
```
Les exécutables sont créés dans `target/release`. Consultez le [guide de contribution](CONTRIBUTING.md) pour l'organisation du code et le processus de développement. Le [script de compilation web](ci/build-web.sh) produit les ressources Web séparément ; les points d'entrée mobiles sont [ios/build.sh](ios/build.sh) et [android/build.sh](android/build.sh).
diff --git a/README.ja-JP.md b/README.ja-JP.md
index 6b0eb3e5..def5d70e 100644
--- a/README.ja-JP.md
+++ b/README.ja-JP.md
@@ -133,7 +133,7 @@ macOS または Linux でデスクトップ版をビルドするには、Rust
git clone --recursive https://github.com/RoversX/ThinkTerm.git
cd ThinkTerm
./get-deps
-cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server
+cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server -p thinkterm-tailnet-node
```
実行ファイルは `target/release` に生成されます。ソース構成と開発手順は[貢献ガイド](CONTRIBUTING.md)をご覧ください。[ブラウザー用ビルドスクリプト](ci/build-web.sh)で Web リソースを別途ビルドします。モバイル版のビルドには [ios/build.sh](ios/build.sh) と [android/build.sh](android/build.sh)を使用します。
diff --git a/README.md b/README.md
index 5b1d0480..65c32da3 100644
--- a/README.md
+++ b/README.md
@@ -135,7 +135,7 @@ For a desktop build on macOS or Linux, install Rust and your platform's build to
git clone --recursive https://github.com/RoversX/ThinkTerm.git
cd ThinkTerm
./get-deps
-cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server
+cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server -p thinkterm-tailnet-node
```
The binaries are written to `target/release`. See [Contributing](CONTRIBUTING.md) for the source layout and development workflow. The [browser build script](ci/build-web.sh) builds the separate Web assets; mobile build entry points are [ios/build.sh](ios/build.sh) and [android/build.sh](android/build.sh).
diff --git a/README.zh-CN.md b/README.zh-CN.md
index b0833f09..904c1cc6 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -133,7 +133,7 @@ TUI 支持工作空间导航、标签页、分屏、调整大小、复制模式
git clone --recursive https://github.com/RoversX/ThinkTerm.git
cd ThinkTerm
./get-deps
-cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server
+cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server -p thinkterm-tailnet-node
```
生成的可执行文件位于 `target/release`。源码结构和开发流程见[贡献指南](CONTRIBUTING.md)。[浏览器构建脚本](ci/build-web.sh) 用于构建独立的 Web 资源;移动端构建入口为 [ios/build.sh](ios/build.sh) 和 [android/build.sh](android/build.sh)。
diff --git a/assets/flatpak/com.roversx.thinkterm.json b/assets/flatpak/com.roversx.thinkterm.json
index 7c0e1ec7..465207f5 100644
--- a/assets/flatpak/com.roversx.thinkterm.json
+++ b/assets/flatpak/com.roversx.thinkterm.json
@@ -45,6 +45,7 @@
"install -Dm755 ./target/release/thinkterm-gui -t /app/bin/",
"install -Dm755 ./target/release/thinkterm-mux-server -t /app/bin/",
"install -Dm755 ./target/release/thinkterm-plugin-server -t /app/bin/",
+ "install -Dm755 ./target/release/thinkterm-tailnet -t /app/bin/",
"install -Dm755 ./target/release/strip-ansi-escapes -t /app/bin/",
"install -Dm644 assets/shell-integration/* -t /app/extra/export/share/etc/profile.d",
"install -Dm644 assets/shell-completion/zsh /app/extra/export/share/zsh/site-functions/_thinkterm",
diff --git a/assets/flatpak/com.roversx.thinkterm.template.json b/assets/flatpak/com.roversx.thinkterm.template.json
index 4707dade..9813fee4 100644
--- a/assets/flatpak/com.roversx.thinkterm.template.json
+++ b/assets/flatpak/com.roversx.thinkterm.template.json
@@ -40,6 +40,7 @@
"install -Dm755 ./target/release/thinkterm-gui -t /app/bin/",
"install -Dm755 ./target/release/thinkterm-mux-server -t /app/bin/",
"install -Dm755 ./target/release/thinkterm-plugin-server -t /app/bin/",
+ "install -Dm755 ./target/release/thinkterm-tailnet -t /app/bin/",
"install -Dm755 ./target/release/strip-ansi-escapes -t /app/bin/",
"install -Dm644 assets/shell-integration/* -t /app/extra/export/share/etc/profile.d",
"install -Dm644 assets/shell-completion/zsh /app/extra/export/share/zsh/site-functions/_thinkterm",
diff --git a/ci/PKGBUILD.template b/ci/PKGBUILD.template
index 9b21ed0b..2e176442 100644
--- a/ci/PKGBUILD.template
+++ b/ci/PKGBUILD.template
@@ -53,6 +53,7 @@ package() {
install -Dm755 squashfs-root/usr/bin/thinkterm-gui -t "${pkgdir}/usr/bin/"
install -Dm755 squashfs-root/usr/bin/thinkterm-mux-server -t "${pkgdir}/usr/bin/"
install -Dm755 squashfs-root/usr/bin/thinkterm-plugin-server -t "${pkgdir}/usr/bin/"
+ install -Dm755 squashfs-root/usr/bin/thinkterm-tailnet -t "${pkgdir}/usr/bin/"
install -Dm644 squashfs-root/usr/share/doc/thinkterm/LICENSE.md \
squashfs-root/usr/share/doc/thinkterm/LICENSE-MIT \
squashfs-root/usr/share/doc/thinkterm/NOTICE \
diff --git a/ci/appimage.sh b/ci/appimage.sh
index 44124b1f..238d6e6e 100755
--- a/ci/appimage.sh
+++ b/ci/appimage.sh
@@ -12,6 +12,7 @@ install -Dsm755 -t AppDir/usr/bin target/$PROFILE/thinkterm
install -Dsm755 -t AppDir/usr/bin target/$PROFILE/wezterm
install -Dsm755 -t AppDir/usr/bin target/$PROFILE/thinkterm-gui
install -Dsm755 -t AppDir/usr/bin target/$PROFILE/thinkterm-plugin-server
+install -Dsm755 -t AppDir/usr/bin target/$PROFILE/thinkterm-tailnet
install -Dsm755 -t AppDir/usr/bin target/$PROFILE/strip-ansi-escapes
install -Dm644 assets/icon/terminal.png AppDir/usr/share/icons/hicolor/128x128/apps/com.roversx.thinkterm.png
install -Dm644 assets/wezterm.desktop AppDir/usr/share/applications/com.roversx.thinkterm.desktop
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 4ef78f5d..5ff9ab43 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -133,7 +133,7 @@ case $OSTYPE in
esac
fi
- for bin in wezterm thinkterm thinkterm-mux-server thinkterm-gui thinkterm-plugin-server strip-ansi-escapes ; do
+ for bin in wezterm thinkterm thinkterm-mux-server thinkterm-gui thinkterm-plugin-server thinkterm-tailnet strip-ansi-escapes ; do
if [[ -n "$macos_bin_dir" ]] ; then
cp $macos_bin_dir/$bin $zipdir/ThinkTerm.app/Contents/MacOS/$bin
# If the user ran a simple `cargo build --release`, then we want to allow
@@ -155,7 +155,7 @@ case $OSTYPE in
# report's addresses can be resolved against the matching build.
symdir="$zipdir-dSYM"
rm -rf "$symdir" "$symdir.zip"
- for bin in wezterm thinkterm thinkterm-mux-server thinkterm-gui thinkterm-plugin-server strip-ansi-escapes ; do
+ for bin in wezterm thinkterm thinkterm-mux-server thinkterm-gui thinkterm-plugin-server thinkterm-tailnet strip-ansi-escapes ; do
dsym="${macos_bin_dir:-$TARGET_DIR/$PROFILE}/$bin.dSYM"
if [[ -d "$dsym" ]] ; then
mkdir -p "$symdir"
@@ -395,7 +395,7 @@ source ~/.cargo/env
cargo build --profile ${PROFILE} \
-p wezterm-gui -p wezterm -p wezterm-mux-server \
- -p thinkterm-plugin-server -p strip-ansi-escapes
+ -p thinkterm-plugin-server -p thinkterm-tailnet-node -p strip-ansi-escapes
BUILDEOFEOF
)
BUILD_REQUIRES=$(cat <<BREQEOF
@@ -490,6 +490,7 @@ install -Dsm755 $TARGET_DIR/$PROFILE/thinkterm -t %{buildroot}/usr/bin
install -Dsm755 $TARGET_DIR/$PROFILE/wezterm -t %{buildroot}/usr/bin
install -Dsm755 $TARGET_DIR/$PROFILE/thinkterm-gui -t %{buildroot}/usr/bin
install -Dsm755 $TARGET_DIR/$PROFILE/thinkterm-plugin-server -t %{buildroot}/usr/bin
+install -Dsm755 $TARGET_DIR/$PROFILE/thinkterm-tailnet -t %{buildroot}/usr/bin
install -Dsm755 $TARGET_DIR/$PROFILE/thinkterm-mux-server -t %{buildroot}/usr/bin
install -Dsm755 $TARGET_DIR/$PROFILE/strip-ansi-escapes -t %{buildroot}/usr/bin
install -Dm644 assets/shell-integration/* -t %{buildroot}/etc/profile.d
@@ -517,6 +518,7 @@ ${RPM_WEB_INSTALL}
/usr/bin/wezterm
/usr/bin/thinkterm-gui
/usr/bin/thinkterm-plugin-server
+/usr/bin/thinkterm-tailnet
/usr/bin/thinkterm-mux-server
/usr/bin/strip-ansi-escapes
/usr/bin/open-thinkterm-here
@@ -538,6 +540,7 @@ ${RPM_WEB_FILES}
/usr/bin/thinkterm
/usr/bin/wezterm
/usr/bin/thinkterm-plugin-server
+/usr/bin/thinkterm-tailnet
/usr/bin/thinkterm-mux-server
/usr/bin/strip-ansi-escapes
/usr/share/licenses/thinkterm-server/*
@@ -656,6 +659,7 @@ EOF
install -Dsm755 -t $root/usr/bin $TARGET_DIR/$PROFILE/thinkterm-mux-server
install -Dsm755 -t $root/usr/bin $TARGET_DIR/$PROFILE/thinkterm-plugin-server
+ install -Dsm755 -t $root/usr/bin $TARGET_DIR/$PROFILE/thinkterm-tailnet
install -Dsm755 -t $root/usr/bin $TARGET_DIR/$PROFILE/thinkterm
install -Dsm755 -t $root/usr/bin $TARGET_DIR/$PROFILE/wezterm
install -Dsm755 -t $root/usr/bin $TARGET_DIR/$PROFILE/strip-ansi-escapes
@@ -758,12 +762,14 @@ EOF
$TARGET_DIR/$PROFILE/thinkterm-mux-server \
$TARGET_DIR/$PROFILE/thinkterm-gui \
$TARGET_DIR/$PROFILE/thinkterm-plugin-server \
+ $TARGET_DIR/$PROFILE/thinkterm-tailnet \
$TARGET_DIR/$PROFILE/strip-ansi-escapes
linux_tarball thinkterm-server \
$TARGET_DIR/$PROFILE/thinkterm \
$TARGET_DIR/$PROFILE/wezterm \
$TARGET_DIR/$PROFILE/thinkterm-mux-server \
$TARGET_DIR/$PROFILE/thinkterm-plugin-server \
+ $TARGET_DIR/$PROFILE/thinkterm-tailnet \
$TARGET_DIR/$PROFILE/strip-ansi-escapes
;;
esac
@@ -792,6 +798,7 @@ source="
$TARGET_DIR/$PROFILE/thinkterm-gui
$TARGET_DIR/$PROFILE/thinkterm-mux-server
$TARGET_DIR/$PROFILE/thinkterm-plugin-server
+ $TARGET_DIR/$PROFILE/thinkterm-tailnet
assets/open-thinkterm-here
assets/open-wezterm-here
assets/wezterm.desktop
@@ -817,6 +824,7 @@ package() {
install -Dm755 -t "\$pkgdir"/usr/bin "\$srcdir"/thinkterm-gui
install -Dm755 -t "\$pkgdir"/usr/bin "\$srcdir"/thinkterm-mux-server
install -Dm755 -t "\$pkgdir"/usr/bin "\$srcdir"/thinkterm-plugin-server
+ install -Dm755 -t "\$pkgdir"/usr/bin "\$srcdir"/thinkterm-tailnet
install -Dm644 "\$srcdir"/wezterm.desktop "\$pkgdir"/usr/share/applications/com.roversx.thinkterm.desktop
install -Dm644 "\$srcdir"/wezterm.appdata.xml "\$pkgdir"/usr/share/metainfo/com.roversx.thinkterm.appdata.xml
diff --git a/ci/macos-package.sh b/ci/macos-package.sh
index 2d75ddcc..228ccc4f 100755
--- a/ci/macos-package.sh
+++ b/ci/macos-package.sh
@@ -347,7 +347,7 @@ EOT
echo " notarization credentials: profile '$NOTARY_PROFILE' works"
fi
-BINARIES="wezterm thinkterm thinkterm-mux-server thinkterm-gui thinkterm-plugin-server strip-ansi-escapes"
+BINARIES="wezterm thinkterm thinkterm-mux-server thinkterm-gui thinkterm-plugin-server thinkterm-tailnet strip-ansi-escapes"
if [[ "$BUILD" == yes ]]; then
if ! rustup target list --installed 2>/dev/null | grep -qx "$RUST_TARGET"; then
@@ -359,14 +359,15 @@ if [[ "$BUILD" == yes ]]; then
echo
echo "==> Building for $ARCH ($PROFILE profile)"
- # The same five packages the release workflow builds, which between them
- # produce all six binaries the bundle carries. Building the whole
+ # The same six packages the release workflow builds, which between them
+ # produce all seven binaries the bundle carries. Building the whole
# workspace instead would compile crates no package ships.
cargo build --profile "$PROFILE" --target "$RUST_TARGET" \
-p wezterm \
-p wezterm-gui \
-p wezterm-mux-server \
-p thinkterm-plugin-server \
+ -p thinkterm-tailnet-node \
-p strip-ansi-escapes
echo
echo "==> Building the browser client"
diff --git a/thinkterm-update/src/lib.rs b/thinkterm-update/src/lib.rs
index 05e93657..d5161102 100644
--- a/thinkterm-update/src/lib.rs
+++ b/thinkterm-update/src/lib.rs
@@ -62,8 +62,8 @@ pub fn build_from_source_instructions(version: &str) -> String {
format!(
"Build ThinkTerm {version} from source on that host instead:\n \
{checkout}\n \
- cd thinkterm && ./get-deps && cargo build --release -p wezterm -p wezterm-mux-server -p thinkterm-plugin-server\n \
- install -Dm755 target/release/thinkterm target/release/wezterm target/release/thinkterm-mux-server target/release/thinkterm-plugin-server -t ~/.local/bin\n\
+ cd thinkterm && ./get-deps && cargo build --release -p wezterm -p wezterm-mux-server -p thinkterm-plugin-server -p thinkterm-tailnet-node\n \
+ install -Dm755 target/release/thinkterm target/release/wezterm target/release/thinkterm-mux-server target/release/thinkterm-plugin-server target/release/thinkterm-tailnet -t ~/.local/bin\n\
then stop the old thinkterm-mux-server there and reconnect."
)
}
@@ -1174,6 +1174,7 @@ mod tests {
text.contains("target/release/thinkterm-plugin-server"),
"{text}"
);
+ assert!(text.contains("target/release/thinkterm-tailnet "), "{text}");
}
#[test]