Files
nip/bin/make_all
Brian Cunnie 3578d96970 make_all: generate executables for all GOOSes
...well, maybe not _all_ GOOSes, but at least the important ones.

And git should ignore the executables so that we don't accidentally
check them in.
2020-12-01 16:08:44 -08:00

18 lines
436 B
Bash
Executable File

#!/bin/bash
#
# Build binaries for macOS, Windows, Linux, FreeBSD
#
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR/../src
export GOOS GOARCH
for GOOS in darwin linux freebsd; do
for GOARCH in amd64; do
go build -o $DIR/sslip.io-dns-server-$GOOS-$GOARCH main.go
done
done
# Windows has a custom extension
GOOS=windows GOARCH=amd64
go build -o $DIR/sslip.io-dns-server-$GOOS-$GOARCH.exe main.go