mirror of
https://github.com/steinhobelgruen/netatmo-exporter.git
synced 2024-11-22 09:23:56 +00:00
Add build script.
This commit is contained in:
parent
7291e4a2bb
commit
12ee9fc65f
9
build-arm.sh
Executable file
9
build-arm.sh
Executable 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"
|
Loading…
Reference in a new issue