Skip to content

Commit fee1c46

Browse files
committed
Package TurtleTerm as a product surface
1 parent a2a3f00 commit fee1c46

1 file changed

Lines changed: 29 additions & 18 deletions

File tree

packaging/scripts/package-turtle-term.sh

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,42 @@ archive="$out_dir/turtle-term-$version-$target.tar.gz"
1010
manifest="$archive.manifest.json"
1111

1212
rm -rf "$stage"
13-
mkdir -p "$stage/bin" "$stage/etc/turtle-term" "$stage/share/turtle-term/sourceos"
13+
mkdir -p "$stage/bin" "$stage/etc/turtle-term" "$stage/share/turtle-term/sourceos" "$stage/share/turtle-term/skills" "$stage/share/turtle-term/brand" "$stage/libexec/turtle-term"
1414

15-
cp "$repo_root/target/release/wezterm" "$stage/bin/"
16-
cp "$repo_root/target/release/wezterm-gui" "$stage/bin/"
17-
cp "$repo_root/target/release/wezterm-mux-server" "$stage/bin/"
18-
cp "$repo_root/assets/sourceos/bin/turtle-term" "$stage/bin/"
19-
cp "$repo_root/assets/sourceos/bin/sourceos-term" "$stage/bin/"
20-
chmod 0755 "$stage/bin/turtle-term" "$stage/bin/sourceos-term"
15+
cp "$repo_root/target/release/wezterm" "$stage/libexec/turtle-term/"
16+
cp "$repo_root/target/release/wezterm-gui" "$stage/libexec/turtle-term/"
17+
cp "$repo_root/target/release/wezterm-mux-server" "$stage/libexec/turtle-term/"
18+
19+
for script in sourceos-term turtle-term turtle-agentd turtle-agentctl turtle-tmux turtleterm turtleterm-mux-server; do
20+
cp "$repo_root/assets/sourceos/bin/$script" "$stage/bin/"
21+
chmod 0755 "$stage/bin/$script"
22+
done
2123

2224
cp "$repo_root/assets/sourceos/wezterm.lua" "$stage/etc/turtle-term/wezterm.lua"
2325
cp -R "$repo_root/docs/sourceos/." "$stage/share/turtle-term/sourceos/"
26+
cp -R "$repo_root/assets/sourceos/skills/." "$stage/share/turtle-term/skills/"
27+
cp -R "$repo_root/assets/sourceos/brand/." "$stage/share/turtle-term/brand/"
2428
cp "$repo_root/LICENSE.md" "$stage/"
25-
cp "$repo_root/README.md" "$stage/UPSTREAM_WEZTERM_README.md"
29+
cp "$repo_root/THIRD_PARTY_NOTICES.md" "$stage/" 2>/dev/null || true
2630

2731
cat > "$stage/README.md" <<'EOF'
2832
# TurtleTerm Release Artifact
2933
30-
TurtleTerm is the SourceOS policy-aware agent terminal workbench product built on the WezTerm engine.
34+
TurtleTerm is the SourceOS policy-aware, agent-addressable terminal workbench for trusted command execution, terminal receipts, agent delegation, and reproducible operator workflows.
3135
3236
This artifact includes:
3337
34-
- wezterm
35-
- wezterm-gui
36-
- wezterm-mux-server
37-
- turtle-term
38-
- sourceos-term compatibility command
39-
- TurtleTerm WezTerm profile
38+
- TurtleTerm graphical launcher
39+
- TurtleTerm command wrapper
40+
- TurtleTerm local agent gateway
41+
- TurtleTerm agent CLI
42+
- TurtleTerm tmux bridge
43+
- TurtleTerm mux launcher
44+
- TurtleTerm profile
45+
- TurtleTerm skill manifests
46+
- TurtleTerm turtle icon
4047
- SourceOS terminal documentation
41-
- upstream WezTerm license and attribution
48+
- required license and third-party notices
4249
4350
Install by copying the contents into a prefix such as `/usr/local` or `$HOME/.local`.
4451
@@ -47,10 +54,14 @@ Example:
4754
```bash
4855
tar -xzf turtle-term-*.tar.gz
4956
cd turtle-term-*
50-
cp -R bin etc share "$HOME/.local/"
57+
cp -R bin etc share libexec "$HOME/.local/"
5158
```
5259
53-
Then ensure `$HOME/.local/bin` is on PATH.
60+
Then ensure `$HOME/.local/bin` is on PATH and launch with:
61+
62+
```bash
63+
turtleterm
64+
```
5465
EOF
5566

5667
rm -f "$archive" "$archive.sha256" "$manifest"

0 commit comments

Comments
 (0)