Last active
October 8, 2024 10:45
-
-
Save sae13/3464a3ed51ed83ef2c868ea8349cc883 to your computer and use it in GitHub Desktop.
install ss+xray
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export version_vray="$(curl -L -s -o /dev/null -w %{url_effective} https://github.com/shadowsocks/v2ray-plugin/releases/latest|rev|cut -d/ -f1|rev)" | |
export version_xray="$(curl -L -s -o /dev/null -w %{url_effective} https://github.com/teddysun/xray-plugin/releases/latest|rev|cut -d/ -f1|rev)" | |
export version_ss="$(curl -L -s -o /dev/null -w %{url_effective} https://github.com/shadowsocks/shadowsocks-rust/releases/latest|rev|cut -d/ -f1|rev)" | |
export version_singbox="$(curl -L -s -o /dev/null -w %{url_effective} https://github.com/SagerNet/sing-box/releases/latest|rev|cut -d/ -f1|rev)" | |
export v_singbox="${version_singbox:1}" | |
export url_vray="https://github.com/shadowsocks/v2ray-plugin/releases/download/$version_vray/v2ray-plugin-linux-amd64-$version_vray.tar.gz" | |
export url_xray="https://github.com/teddysun/xray-plugin/releases/download/$version_xray/xray-plugin-linux-amd64-$version_xray.tar.gz" | |
export url_ss="https://github.com/shadowsocks/shadowsocks-rust/releases/download/$version_ss/shadowsocks-$version_ss.x86_64-unknown-linux-gnu.tar.xz" | |
export url_singbox="https://github.com/SagerNet/sing-box/releases/download/$version_singbox/sing-box-$v_singbox-linux-amd64.tar.gz" | |
export sspath=$HOME/.local/bin | |
mkdir -p $sspath >/dev/null 2>&1 | |
mkdir /tmp/ss >/dev/null 2>&1 | |
cd $sspath | |
echo "downladong singbox: $url_singbox" | |
curl -LOs $url_singbox | |
tar -xf sing-box-$v_singbox-linux-amd64.tar.gz | |
mv sing-box-$v_singbox-linux-amd64.tar.gz /tmp/ss | |
mv sing-box-$v_singbox-linux-amd64/sing-box . | |
mv sing-box-$v_singbox-linux-amd64/ /tmp | |
echo done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment