From 77a97110c61732d3723c1ff752413ef2c4c472fe Mon Sep 17 00:00:00 2001 From: xvzc Date: Mon, 22 Jul 2024 21:06:29 +0900 Subject: [PATCH] Add version information --- make-releases.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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