update release, install.sh

This commit is contained in:
xvzc 2022-01-12 17:50:59 +09:00
parent 6fd23d3a6d
commit bd5c8ccd71
2 changed files with 4 additions and 7 deletions

View File

@ -3,6 +3,6 @@
curl --silent "https://api.github.com/repos/xvzc/SpoofDPI/releases/latest" | curl --silent "https://api.github.com/repos/xvzc/SpoofDPI/releases/latest" |
grep '"tag_name":' | grep '"tag_name":' |
sed -E 's/.*"([^"]+)".*/\1/' | sed -E 's/.*"([^"]+)".*/\1/' |
xargs -I {} curl -sOL "https://github.com/xvzc/SpoofDPI/releases/download/"\{\}'/spoof-dpi-osx.zip' xargs -I {} curl -sOL "https://github.com/xvzc/SpoofDPI/releases/download/"\{\}'/spoof-dpi-osx.tar.gz'
unzip -rf ./spoof-dpi-osx.zip tar -xzvf ./spoof-dpi-osx.tar.gz && rm -rf ./spoof-dpi-osx.tar.gz

View File

@ -1,7 +1,4 @@
#!/bin/bash #!/bin/bash
GOOS=darwin GOARCH=amd64 go build ./cmd/... GOOS=darwin GOARCH=amd64 go build ./cmd/... && tar -zcvf spoof-dpi-osx.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi
zip -rm spoof-dpi-osx.zip spoof-dpi GOOS=linux GOARCH=amd64 go build ./cmd/... && tar -zcvf spoof-dpi-linux.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi
GOOS=linux GOARCH=amd64 go build ./cmd/...
zip -rm spoof-dpi-linux.zip spoof-dpi