Add build script for linux/amd64 and linux/arm
This commit is contained in:
parent
ac3bb1ebe9
commit
f2066c7de6
15
build.sh
Executable file
15
build.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user