mirror of
https://github.com/steinhobelgruen/netatmo-exporter.git
synced 2024-11-22 01:13:56 +00:00
10 lines
197 B
Bash
10 lines
197 B
Bash
|
#!/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"
|