update installation process

This commit is contained in:
jerry901 2022-01-12 22:34:26 +09:00
parent ba11e0e713
commit ebe1928695
3 changed files with 41 additions and 15 deletions

View File

@ -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"

View File

@ -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`

View File

@ -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`