mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2024-12-22 22:36:53 +00:00
update release, install.sh
This commit is contained in:
parent
6fd23d3a6d
commit
bd5c8ccd71
@ -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
|
||||||
|
7
release
7
release
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user