netatmo-exporter/build-arm.sh

10 lines
197 B
Bash
Raw Normal View History

2017-01-08 17:52:12 +00:00
#!/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"