Files
Claude 57bb8e67ff App-Icon „Phosphor“ für Windows, macOS, Linux und die Webseite
- assets/icon: grünes >_ mit Matrix-Regen, alle Größen als PNG, .ico, .icns;
  16–64 px als vereinfachte Fassung, damit sie lesbar bleibt
- Windows: Icon als Ressource in sshtermy.exe (rsrc_windows_*.syso, eigenes
  Werkzeug tools/icon/winres ohne Fremdabhängigkeit)
- macOS: sshTermy.app bekommt das Icon; das Programm legt es selbst in die
  .app, so erhalten auch bestehende Installationen es nach dem Update
- Linux: .deb mit hicolor-Icons und Startmenü-Eintrag
- Webseite: Favicon, Apple-Touch-Icon, Logo in der Kopfzeile; README
- make icon erzeugt alles neu

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018i4GUhyZeAnaXMQzGXmQU3
2026-11-09 07:49:34 +00:00

58 lines
2.0 KiB
Bash
Executable File
Raw Permalink 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"
# Icon + Startmenü-Eintrag (öffnet sshTermy im Standard-Terminal)
icons="$(dirname "$0")/../assets/icon"
for s in 16 24 32 48 64 128 256 512; do
install -Dm644 "$icons/sshtermy-$s.png" "$root/usr/share/icons/hicolor/${s}x$s/apps/sshtermy.png"
done
install -d "$root/usr/share/applications"
cat >"$root/usr/share/applications/sshtermy.desktop" <<'TXT'
[Desktop Entry]
Type=Application
Name=sshTermy
GenericName=SSH Terminal
Comment=SSH terminal with an AI copilot
Comment[de]=SSH-Terminal mit KI-Kopilot
Exec=sshtermy
Icon=sshtermy
Terminal=true
Categories=Network;RemoteAccess;
Keywords=ssh;sftp;telnet;serial;terminal;
TXT
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
License: MIT
TXT
cat "$(dirname "$0")/../LICENSE" >>"$root/usr/share/doc/sshtermy/copyright"
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"