Add build script.

This commit is contained in:
Robert Jacob 2017-01-08 18:52:12 +01:00
parent 7291e4a2bb
commit 12ee9fc65f
1 changed files with 9 additions and 0 deletions

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"