mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-19 05:54:34 +08:00

We had moved the DNS server to a sub-directory to make room for a sibling application, a small DNS server + small HTTP server. fixes: ``` cannot find package "main.go" in any of: /usr/local/Cellar/go/1.15.6/libexec/src/main.go (from $GOROOT) /Users/cunnie/go/src/main.go (from $GOPATH) ```
18 lines
456 B
Bash
Executable File
18 lines
456 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/sslip.io-dns-server
|
|
|
|
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
|