mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
23 lines
456 B
Bash
Executable File
23 lines
456 B
Bash
Executable File
|
|
PKG=github.com/StackExchange/dnscontrol
|
|
FLAGS="-s -w"
|
|
|
|
echo 'Building Linux'
|
|
go build -o dnscontrol-Linux -ldflags "$FLAGS" $PKG
|
|
|
|
echo 'Building Windows'
|
|
export GOOS=windows
|
|
go build -o dnscontrol.exe -ldflags "$FLAGS" $PKG
|
|
|
|
echo 'Building Darwin'
|
|
export GOOS=darwin
|
|
go build -o dnscontrol-Darwin -ldflags "$FLAGS" $PKG
|
|
|
|
ls -lah dnscontrol*
|
|
|
|
echo 'Compressing executables'
|
|
upx dnscontrol.exe
|
|
upx dnscontrol-Linux
|
|
upx dnscontrol-Darwin
|
|
|
|
ls -lah dnscontrol* |