Add build script for linux/amd64 and linux/arm

This commit is contained in:
Siegfried Siegert 2020-09-02 10:54:03 +02:00
parent ac3bb1ebe9
commit f2066c7de6

15
build.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
TARGET=mqttListener
#cd /src
echo "Building for Linux 64-bit"
env GOOS=linux GOARCH=amd64 go build -o ${TARGET}-linux-amd64
echo "Building for arm"
env GOOS=linux GOARCH=arm go build -o ${TARGET}-linux-arm