16 lines
226 B
Bash
16 lines
226 B
Bash
|
#!/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
|