31 lines
896 B
Bash
Executable file
31 lines
896 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
echo "🔧 Baue Remote-Shack (Reiner Kompilierungs-Sync)..."
|
|
|
|
# Clean & Prep
|
|
rm -rf app
|
|
rm -f .shack_session
|
|
mkdir -p app/server app/clients
|
|
|
|
# 1. Server bauen
|
|
echo " -> [Server] Kompiliere Haupt-Server..."
|
|
go build -o ./app/server/shack-server ./cmd/server/main.go
|
|
|
|
# 2. Clients bauen
|
|
echo " -> [Client] Rig-Client..."
|
|
go build -o ./app/clients/client-rig ./cmd/client-rig/main.go
|
|
|
|
echo " -> [Client] Relais-Client..."
|
|
go build -o ./app/clients/client-relais ./cmd/client-relais/main.go
|
|
|
|
echo " -> [Client] Rotor-Client (Fyne GUI)..."
|
|
CGO_ENABLED=1 go build -o ./app/clients/client-rotor ./cmd/client-rotor/main.go
|
|
|
|
echo " -> [Client] Volt-Monitor (ADS1115 Telemetrie)..."
|
|
go build -o ./app/clients/client-volt ./cmd/client-volt/main.go
|
|
|
|
# Ausführungsrechte vergeben
|
|
find ./app -type f -exec chmod +x {} +
|
|
|
|
echo "✅ Alle Binaries erfolgreich in ./app/ erstellt."
|