From 12ee9fc65f70bd187e4b0b24c4880694019a82dc Mon Sep 17 00:00:00 2001 From: Robert Jacob Date: Sun, 8 Jan 2017 18:52:12 +0100 Subject: [PATCH] Add build script. --- build-arm.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 build-arm.sh diff --git a/build-arm.sh b/build-arm.sh new file mode 100755 index 0000000..3e51ed1 --- /dev/null +++ b/build-arm.sh @@ -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"