mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-09-27 12:02:14 +08:00
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.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
.DS_Store
|
||||
# We don't check-in JetBrains's Goland settings
|
||||
.idea
|
||||
bin/sslip.io-dns-server-*
|
||||
|
17
bin/make_all
Executable file
17
bin/make_all
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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
|
Reference in New Issue
Block a user