mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-11-01 11:22:31 +08:00
...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.
18 lines
436 B
Bash
Executable File
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
|