From bf090c51193490738b7cf08d3ac2643e19d6ac62 Mon Sep 17 00:00:00 2001 From: nia <29542929+niacat@users.noreply.github.com> Date: Thu, 13 Jun 2019 20:50:59 +0100 Subject: [PATCH] build.sh: build for netbsd (#181) --- build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.sh b/build.sh index c4fc7f4..a34085e 100755 --- a/build.sh +++ b/build.sh @@ -13,6 +13,11 @@ function build_binary_rice { rice append --exec "$name"freebsd-$arch 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 GOOS=openbsd GOARCH=$arch go build -o "$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 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 GOOS=openbsd GOARCH=$arch go build -o "$name"openbsd-$arch done