From d472399ce53464c1a5b275f10a4b315bd06c6923 Mon Sep 17 00:00:00 2001 From: hufrea <135158507+hufrea@users.noreply.github.com> Date: Fri, 26 Jul 2024 19:45:00 +0300 Subject: [PATCH] Update make-releases.sh other architectures --- make-releases.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/make-releases.sh b/make-releases.sh index 2df9336..79100ae 100644 --- a/make-releases.sh +++ b/make-releases.sh @@ -2,6 +2,8 @@ VERSION="v0.10.0" -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 +for osarch in 'darwin/amd64' 'linux/amd64' 'linux/arm' 'linux/arm64' 'linux/mips' 'linux/mipsle'; do + GOOS=${osarch%/*} GOARCH=${osarch#*/} go build -ldflags="-w -s -X main.VERSION=${VERSION}" github.com/xvzc/SpoofDPI/cmd/spoof-dpi && + tar -zcvf spoof-dpi-${osarch%/*}-${osarch#*/}.tar.gz ./spoof-dpi && + rm -rf ./spoof-dpi +done