added autostart for windows and autostart for devices

This commit is contained in:
2026-02-19 09:34:38 +01:00
parent e2b853840d
commit 486cf6d239
10 changed files with 290 additions and 19 deletions
Executable
+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
set -e
export PATH="$PATH:/usr/local/go/bin"
OUT="bin"
LDFLAGS="-s -w"
mkdir -p "$OUT"
echo "=== Building Linux Client ==="
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="$LDFLAGS" -o "$OUT/usb-client" ./cmd/usb-client/
echo " -> $OUT/usb-client"
echo "=== Building Windows Client ==="
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="$LDFLAGS" -o "$OUT/usb-client.exe" ./cmd/usb-client/
echo " -> $OUT/usb-client.exe"
echo "=== Building Relay ==="
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="$LDFLAGS" -o "$OUT/usb-relay" ./cmd/usb-relay/
echo " -> $OUT/usb-relay"
echo ""
echo "Done. Binaries in $OUT/"
ls -lh "$OUT/"