mirror of
https://github.com/db9979/sshtermy.git
synced 2026-12-05 12:24:08 +01:00
* README, Webseite und druckbare Kurzreferenz auf aktuellen Stand README (EN/DE): Tasten für Agent-Modus, Alt+I, Arbeitsplätze, Protokoll-Ansichten, Durchschalt-Einträge der Palette, neue Bilder, Link zur Kurzreferenz. Webseite: Agent-Modus und geteilte Ansicht im Rundgang, neue Funktionskarten, KI-Anbieter mit Ersatzkette, erweiterte Tastentabelle, Download-Bereich. Kurzreferenz: tools/handout erzeugt site/handout/*.pdf (A4, 2 Seiten, DE + EN). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018i4GUk9Qmckd4DUSyvKzj8 * Plan-Modus in README, Webseite und Kurzreferenz Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018i4GUk9Qmckd4DUSyvKzj8 * Kurzreferenz aktuell halten: Test mit Fingerabdruck der Tasten, CLAUDE.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018i4GUk9Qmckd4DUSyvKzj8 --------- Co-authored-by: Claude <noreply@anthropic.com>
44 lines
1.7 KiB
Makefile
44 lines
1.7 KiB
Makefile
# sshTermy Build. Version = MAJOR.MINOR aus VERSION + Anzahl Commits.
|
|
VERSION := $(shell cat VERSION).$(shell git rev-list --count HEAD 2>/dev/null || echo 0)
|
|
COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null || echo none)
|
|
DATE := $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
|
PKG := github.com/db9979/sshtermy/internal/version
|
|
LDFLAGS := -s -w -X $(PKG).Version=$(VERSION) -X $(PKG).Commit=$(COMMIT) -X $(PKG).Date=$(DATE) -X $(PKG).UpdatePubKey=$(UPDATE_PUBKEY)
|
|
TARGETS := windows/arm64 windows/386 windows/amd64 darwin/arm64 darwin/amd64 linux/amd64 linux/arm64 linux/arm linux/riscv64
|
|
|
|
.PHONY: build test bench dist clean run golden handout
|
|
build:
|
|
CGO_ENABLED=0 go build -trimpath -ldflags "$(LDFLAGS)" -o bin/sshtermy ./cmd/sshtermy
|
|
|
|
test:
|
|
go vet ./... && go test ./...
|
|
cd third_party/vt && go test ./...
|
|
|
|
# Leistung: Terminal-Durchsatz, Speicher pro Tab, Manager mit 500 Verbindungen
|
|
bench:
|
|
go test -run '^$$' -bench . -benchtime 2s ./internal/termemu ./internal/ui ./internal/store
|
|
|
|
# Bildschirm-Tests (internal/ui/testdata/golden) nach gewollten Änderungen neu schreiben
|
|
golden:
|
|
go test ./internal/ui -run TestGolden -update
|
|
|
|
# Kurzreferenz zum Ausdrucken (site/handout/*.pdf) + Fingerabdruck der Tasten, braucht Node + Playwright
|
|
handout:
|
|
node tools/handout/render.mjs
|
|
HANDOUT_STAMP=1 go test ./internal/ui -run TestHandoutKeysCurrent -count=1
|
|
|
|
dist: test
|
|
@mkdir -p dist
|
|
@for t in $(TARGETS); do \
|
|
os=$${t%/*}; arch=$${t#*/}; ext=""; [ $$os = windows ] && ext=".exe"; \
|
|
echo "-> $$os/$$arch"; \
|
|
CGO_ENABLED=0 GOARM=7 GOOS=$$os GOARCH=$$arch go build -trimpath -ldflags "$(LDFLAGS)" -o dist/sshtermy_$${os}_$${arch}$$ext ./cmd/sshtermy || exit 1; \
|
|
done
|
|
cd dist && sha256sum sshtermy_* > checksums.txt
|
|
|
|
run: build
|
|
./bin/sshtermy
|
|
|
|
clean:
|
|
rm -rf bin dist
|