Files
sshtermy/packaging/deb.sh
T
Claude 7f5523b279 Paketquellen (Homebrew, apt, winget) und Webseite auf GitHub Pages
- release.yml baut .deb (amd64, arm64) und schreibt Formula/sshtermy.rb
- pages.yml: Webseite (site/, en + de, GIFs) und apt-Quelle unter /apt
- winget.yml: Einreichung bei winget-pkgs von Hand (Secret WINGET_TOKEN)
- Bei Homebrew/apt-Installation kein Selbst-Update, stattdessen Befehl
- tools/dev/gifs: Aufnahme der GIFs aus der echten App

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018i4GUfgD3KuJTKRbUm5tK6
2026-11-06 06:31:14 +00:00

36 lines
1.3 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/sh
# Baut ein .deb aus einer fertigen Programmdatei (kein Kompilieren hier).
# packaging/deb.sh 1.0.42 amd64 dist/sshtermy_linux_amd64 dist
# Ergebnis: dist/sshtermy_1.0.42_amd64.deb (Programm unter /usr/bin/sshtermy).
set -eu
ver="$1"; arch="$2"; bin="$3"; out="$4"
root="$(mktemp -d)"
trap 'rm -rf "$root"' EXIT INT TERM
chmod 755 "$root"
install -Dm755 "$bin" "$root/usr/bin/sshtermy"
install -d "$root/usr/share/doc/sshtermy" "$root/DEBIAN"
cat >"$root/usr/share/doc/sshtermy/copyright" <<'TXT'
sshTermy – SSH terminal with an AI copilot
Idea: Dominik Bornhäußer
Source: https://github.com/db9979/sshtermy
TXT
size="$(du -sk "$root/usr" | cut -f1)"
cat >"$root/DEBIAN/control" <<TXT
Package: sshtermy
Version: $ver
Architecture: $arch
Maintainer: Dominik Bornhäußer <noreply@github.com>
Installed-Size: $size
Section: net
Priority: optional
Homepage: https://db9979.github.io/sshtermy/
Description: SSH terminal with an AI copilot
sshTermy is a terminal application (TUI) with a connection manager,
encrypted store, SFTP, tunnels, broadcast and an AI copilot for any
OpenAI-compatible endpoint. Updates come through apt.
TXT
mkdir -p "$out"
dpkg-deb --root-owner-group --build "$root" "$out/sshtermy_${ver}_${arch}.deb" >/dev/null
echo "$out/sshtermy_${ver}_${arch}.deb"