mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Making compression gated by flag.
This commit is contained in:
15
build.sh
15
build.sh
@ -13,11 +13,10 @@ echo 'Building Darwin'
|
|||||||
export GOOS=darwin
|
export GOOS=darwin
|
||||||
go build -o dnscontrol-Darwin -ldflags "$FLAGS" $PKG
|
go build -o dnscontrol-Darwin -ldflags "$FLAGS" $PKG
|
||||||
|
|
||||||
ls -lah dnscontrol*
|
if [ "$COMPRESS" = "1" ]
|
||||||
|
then
|
||||||
echo 'Compressing executables'
|
echo 'Compressing executables'
|
||||||
upx dnscontrol.exe
|
upx dnscontrol.exe
|
||||||
upx dnscontrol-Linux
|
upx dnscontrol-Linux
|
||||||
upx dnscontrol-Darwin
|
upx dnscontrol-Darwin
|
||||||
|
fi
|
||||||
ls -lah dnscontrol*
|
|
Reference in New Issue
Block a user