From ebe1928695a132db5fb0aacb3ef59b32a01362a2 Mon Sep 17 00:00:00 2001 From: jerry901 Date: Wed, 12 Jan 2022 22:34:26 +0900 Subject: [PATCH] update installation process --- install.sh | 18 +++++++++++++++++- readme.md | 17 +++++++++++------ readme_ko.md | 21 +++++++++++++-------- 3 files changed, 41 insertions(+), 15 deletions(-) diff --git a/install.sh b/install.sh index 081778f..971a7f9 100644 --- a/install.sh +++ b/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" diff --git a/readme.md b/readme.md index bf44361..916e5c1 100644 --- a/readme.md +++ b/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` diff --git a/readme_ko.md b/readme_ko.md index 1d09406..accaa5e 100644 --- a/readme_ko.md +++ b/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`