SpoofDPI/make-releases.sh

10 lines
378 B
Bash
Raw Normal View History

2022-01-12 06:42:20 +00:00
#!/bin/bash
2024-07-22 12:06:29 +00:00
VERSION="v0.10.0"
2022-03-06 08:06:58 +00:00
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