Add build script.

This commit is contained in:
Robert Jacob 2017-01-08 18:52:12 +01:00
parent 7291e4a2bb
commit 12ee9fc65f

9
build-arm.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash -e
echo "Build binary..."
GOOS=linux GOARCH=arm go build -v -ldflags="-s -w" .
type upx && {
echo "Packing using upx..."
upx -9 netatmo-exporter
} || echo "upx not available"