#!/usr/bin/env bash # Baut die portable Host-Agent-Binary (Linux x86_64) via Docker + PyInstaller. # Ergebnis: ./dist/aria-host-agent (Onefile, ~15 MB, keine Runtime noetig). # # ./build.sh # # Danach auf den Ziel-Rechner kopieren, .env danebenlegen und starten: # ./aria-host-agent set -euo pipefail cd "$(dirname "$0")" mkdir -p dist docker build -f Dockerfile.build -t aria-host-agent-build . docker run --rm -v "$(pwd)/dist:/out" aria-host-agent-build echo echo "Fertig: dist/aria-host-agent" echo "Auf den Ziel-Rechner kopieren, .env danebenlegen (siehe .env.example), dann:" echo " chmod +x aria-host-agent && ./aria-host-agent"