mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-06 05:04:29 +08:00
Making compression gated by flag.
This commit is contained in:
parent
37c9864ecd
commit
c1a528a359
1 changed files with 7 additions and 8 deletions
15
build.sh
15
build.sh
|
@ -13,11 +13,10 @@ 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*
|
||||
if [ "$COMPRESS" = "1" ]
|
||||
then
|
||||
echo 'Compressing executables'
|
||||
upx dnscontrol.exe
|
||||
upx dnscontrol-Linux
|
||||
upx dnscontrol-Darwin
|
||||
fi
|
Loading…
Add table
Reference in a new issue