Add build.sh

This commit is contained in:
akp 2024-11-02 11:09:50 +00:00
parent e31c96178c
commit 940df9c199
No known key found for this signature in database
GPG key ID: CF8D58F3DEB20755

5
build.sh Normal file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -ex
CGO_ENABLED=0 GOOS=linux go build -a -buildvcs=false -installsuffix cgo -ldflags '-extldflags "-static" -s -w' -o main git.tdpain.net/codemicro/pi-phone/pi-phone