Skip to content

Commit

Permalink
Update client build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tindy2013 committed Aug 20, 2020
1 parent 26048d1 commit fb496c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/build.alpine.clients.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,30 @@ cd ..
if [[ "$ARCH" = "x86_64" ]];then
curl -LO https://github.com/v2ray/v2ray-core/releases/latest/download/v2ray-linux-64.zip
curl -LO https://github.com/joewalnes/websocketd/releases/download/v0.3.1/websocketd-0.3.1-linux_amd64.zip
curl -LO https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.3.1/v2ray-plugin-linux-amd64-v1.3.1.tar.gz
else if [[ "$ARCH" = "x86" ]];then
curl -LO https://github.com/v2ray/v2ray-core/releases/latest/download/v2ray-linux-32.zip
curl -LO https://github.com/joewalnes/websocketd/releases/download/v0.3.1/websocketd-0.3.1-linux_386.zip
curl -LO https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.3.1/v2ray-plugin-linux-386-v1.3.1.tar.gz
else
curl -LO https://github.com/joewalnes/websocketd/releases/download/v0.3.1/websocketd-0.3.1-linux_arm.zip
if [[ "$ARCH" = "aarch64" ]];then
curl -LO https://github.com/v2ray/v2ray-core/releases/latest/download/v2ray-linux-arm64.zip
curl -LO https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.3.1/v2ray-plugin-linux-arm64-v1.3.1.tar.gz
else if [[ "$ARCH" = "armhf" ]];then
curl -LO https://github.com/v2ray/v2ray-core/releases/latest/download/v2ray-linux-arm.zip
curl -LO https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.3.1/v2ray-plugin-linux-arm-v1.3.1.tar.gz
fi
fi
fi
fi

unzip v2ray*.zip v2ray v2ctl
unzip websocketd*.zip websocketd
tar xvf v2ray-plugin*.gz
rm v2ray-plugin*.gz
strip -s websocketd
mv v2ray-plugin* base/tools/clients/v2ray-plugin
mv v2ray base/tools/clients/
mv v2ctl base/tools/clients/
mv websocketd base/tools/gui/
Expand Down
5 changes: 5 additions & 0 deletions scripts/build.macos.clients.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ curl -LO https://github.com/joewalnes/websocketd/releases/download/v0.3.0/websoc
unzip websocketd-0.3.0-darwin_amd64.zip websocketd
mv websocketd base/tools/gui/

curl -LO https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.3.1/v2ray-plugin-darwin-amd64-v1.3.1.tar.gz
tar xvf v2ray-plugin*.gz
rm v2ray-plugin*.gz
mv v2ray-plugin* base/tools/clients/v2ray-plugin

chmod +rx base/tools/clients/* base/tools/gui/websocketd

set +xe

0 comments on commit fb496c2

Please sign in to comment.