mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2025-01-16 11:44:58 +00:00
update installation process
This commit is contained in:
parent
ba11e0e713
commit
ebe1928695
18
install.sh
18
install.sh
@ -5,5 +5,21 @@ curl "https://api.github.com/repos/xvzc/SpoofDPI/releases/latest" |
|
||||
sed -E 's/.*"([^"]+)".*/\1/' |
|
||||
xargs -I {} curl -OL "https://github.com/xvzc/SpoofDPI/releases/download/"\{\}"/spoof-dpi-${1}.tar.gz"
|
||||
|
||||
tar -xzvf ./spoof-dpi-${1}.tar.gz && rm -rf ./spoof-dpi-${1}.tar.gz && mv ./spoof-dpi /usr/local/bin && hash -r
|
||||
mkdir -p ~/.spoof-dpi/bin
|
||||
|
||||
tar -xzvf ./spoof-dpi-${1}.tar.gz && \
|
||||
rm -rf ./spoof-dpi-${1}.tar.gz && \
|
||||
mv ./spoof-dpi ~/.spoof-dpi/bin
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error. exiting now"
|
||||
exit
|
||||
fi
|
||||
|
||||
export PATH=$PATH:~/.spoof-dpi/bin
|
||||
|
||||
echo ""
|
||||
echo "Successfully installed SpoofDPI."
|
||||
echo "Please add the line below to your rcfile(.bashrc or .zshrc etc..)"
|
||||
echo ""
|
||||
echo "export PATH=\$PATH:~/.spoof-dpi/bin"
|
||||
|
17
readme.md
17
readme.md
@ -11,7 +11,14 @@ A simple and fast software designed to bypass **Deep Packet Inspection**
|
||||
- Go
|
||||
|
||||
# Installation
|
||||
## curl
|
||||
## Binary
|
||||
SpoofDPI will be installed in `~/.spoof-dpi/bin`.
|
||||
To run SpoofDPI in any directory, add the line below to your `~/.bashrc || ~/.zshrc || ...`
|
||||
```
|
||||
export PATH=$PATH:~/.spoof-dpi/bin
|
||||
```
|
||||
|
||||
### curl
|
||||
Install the latest binary with curl
|
||||
- OSX
|
||||
```
|
||||
@ -21,8 +28,7 @@ curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bas
|
||||
```
|
||||
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux
|
||||
```
|
||||
|
||||
## wget
|
||||
### wget
|
||||
Install the latest binary with wget
|
||||
- OSX
|
||||
```
|
||||
@ -32,13 +38,12 @@ wget -O - https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash
|
||||
```
|
||||
wget -O - https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux
|
||||
```
|
||||
|
||||
## go install
|
||||
## Go
|
||||
You can also install SpoofDPI with **go install**
|
||||
`$ go install github.com/xvzc/SpoofDPI/cmd/spoof-dpi`
|
||||
> Remember that $GOPATH should be set in your $PATH
|
||||
|
||||
## git
|
||||
## Git
|
||||
You can also build your own
|
||||
`$ git clone https://github.com/xvzc/SpoofDPI.git`
|
||||
`$ cd SpoofDPI`
|
||||
|
21
readme_ko.md
21
readme_ko.md
@ -11,8 +11,15 @@ DPI(Deep Packet Inspection) 우회를 위해 고안된 소프트웨어
|
||||
- Go
|
||||
|
||||
# 설치
|
||||
## curl
|
||||
**curl**을 활용해서 최신 바이너리 릴리즈 설치하기
|
||||
## Binary
|
||||
SpoofDPI는 `~/.spoof-dpi/bin` 경로에 설치됩니다.
|
||||
모든 경로에서 SpoofDPI를 실행 가능하도록 하기위해서 아래 라인을 `~/.bashrc || ~/.zshrc || ...`에 추가해주세요.
|
||||
```
|
||||
export PATH=$PATH:~/.spoof-dpi/bin
|
||||
```
|
||||
|
||||
### curl
|
||||
최신 릴리즈를 curl 명령어로 설치하기
|
||||
- OSX
|
||||
```
|
||||
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s osx
|
||||
@ -21,9 +28,8 @@ curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bas
|
||||
```
|
||||
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux
|
||||
```
|
||||
|
||||
## wget
|
||||
**wget**을 활용해서 최신 바이너리 릴리즈 설치하기
|
||||
### wget
|
||||
최신 릴리즈를 wget 명령어로 설치하기
|
||||
- OSX
|
||||
```
|
||||
wget -O - https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s osx
|
||||
@ -32,13 +38,12 @@ wget -O - https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash
|
||||
```
|
||||
wget -O - https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux
|
||||
```
|
||||
|
||||
## go install
|
||||
## Go
|
||||
**go install**로 설치하기
|
||||
`$ go install github.com/xvzc/SpoofDPI/cmd/spoof-dpi`
|
||||
> Remember that $GOPATH should be set in your $PATH
|
||||
|
||||
## git
|
||||
## Git
|
||||
직접 빌드하기
|
||||
`$ git clone https://github.com/xvzc/SpoofDPI.git`
|
||||
`$ cd SpoofDPI`
|
||||
|
Loading…
Reference in New Issue
Block a user