first commit

This commit is contained in:
Stefan Hacker
2026-02-18 22:01:54 +01:00
commit 5464e553b3
35 changed files with 5432 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
.PHONY: all relay client client-windows clean
GOOS ?= linux
GOARCH ?= amd64
all: relay client
relay:
CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/usb-relay ./cmd/usb-relay/
client:
CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/usb-client ./cmd/usb-client/
client-windows:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o bin/usb-client.exe ./cmd/usb-client/
docker:
docker compose build
docker-run:
docker compose up -d
clean:
rm -rf bin/