diff --git a/make-releases.sh b/make-releases.sh index de620e1..2df9336 100644 --- a/make-releases.sh +++ b/make-releases.sh @@ -1,5 +1,7 @@ #!/bin/bash -GOOS=darwin GOARCH=amd64 go build -ldflags='-w -s' github.com/xvzc/SpoofDPI/cmd/spoof-dpi && tar -zcvf spoof-dpi-osx.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi +VERSION="v0.10.0" -GOOS=linux GOARCH=amd64 go build -ldflags='-w -s' github.com/xvzc/SpoofDPI/cmd/spoof-dpi && tar -zcvf spoof-dpi-linux.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi +GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s -X main.VERSION=${VERSION}" github.com/xvzc/SpoofDPI/cmd/spoof-dpi && tar -zcvf spoof-dpi-osx.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi + +GOOS=linux GOARCH=amd64 go build -ldflags="-w -s -X main.VERSION=${VERSION}" github.com/xvzc/SpoofDPI/cmd/spoof-dpi && tar -zcvf spoof-dpi-linux.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi