Files
florian.wildeandClaude Opus 5.5 bd4bca5399 feat(cli): proxdeploy in Go
Befehle login, servers, distros, profiles, presets, vm, lxc, template list|build, batch, status, logs --follow, cancel. Renderer im Aufbau der Vorgabe (zeichengenau per Golden-File), 24-bit/256/ohne Farbe, --ascii, --quiet, --json, --dry-run; live im Terminal, zeilenweise ohne. SSE mit Wiederverbinden und Polling als Rückfall. Typen aus openapi.json per oapi-codegen; Release-Builds per cli/bauen.sh.

Refs #013

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 15:08:41 +02:00

20 lines
843 B
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.
#!/usr/bin/env bash
# Release-Builds der CLI: linux/darwin/windows × amd64/arm64, statisch (CGO aus), nach cli/bin/.
# cli/bauen.sh 0.4.0
set -euo pipefail
cd "$(dirname "$0")"
version="${1:?Version angeben, z. B. 0.4.0}"
commit="$(git rev-parse --short HEAD 2>/dev/null || echo unbekannt)"
mkdir -p bin
rm -f bin/proxdeploy-* bin/SHA256SUMS
for ziel in linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 windows/amd64 windows/arm64; do
os="${ziel%/*}"; arch="${ziel#*/}"
datei="bin/proxdeploy-${version}-${os}-${arch}"
[ "$os" = windows ] && datei="${datei}.exe"
CGO_ENABLED=0 GOOS="$os" GOARCH="$arch" go build -trimpath \
-ldflags "-s -w -X git.wilde-server.de/florian.wilde/proxdeploy/cli/internal/befehle.Version=${version}+${commit}" \
-o "$datei" .
echo "$datei"
done
(cd bin && sha256sum proxdeploy-* > SHA256SUMS)