build.sh: build for netbsd (#181)

This commit is contained in:
nia 2019-06-13 20:50:59 +01:00 committed by Andrei Marcu
parent 50c1bdc018
commit bf090c5119
1 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,11 @@ function build_binary_rice {
rice append --exec "$name"freebsd-$arch rice append --exec "$name"freebsd-$arch
done done
for arch in arm amd64 386; do
GOOS=netbsd GOARCH=$arch go build -o "$name"netbsd-$arch
rice append --exec "$name"netbsd-$arch
done
for arch in amd64 386; do for arch in amd64 386; do
GOOS=openbsd GOARCH=$arch go build -o "$name"openbsd-$arch GOOS=openbsd GOARCH=$arch go build -o "$name"openbsd-$arch
rice append --exec "$name"openbsd-$arch rice append --exec "$name"openbsd-$arch
@ -40,6 +45,10 @@ function build_binary {
GOOS=freebsd GOARCH=$arch go build -o "$name"freebsd-$arch GOOS=freebsd GOARCH=$arch go build -o "$name"freebsd-$arch
done done
for arch in arm amd64 386; do
GOOS=netbsd GOARCH=$arch go build -o "$name"netbsd-$arch
done
for arch in amd64 386; do for arch in amd64 386; do
GOOS=openbsd GOARCH=$arch go build -o "$name"openbsd-$arch GOOS=openbsd GOARCH=$arch go build -o "$name"openbsd-$arch
done done