diff --git a/install/singbox.sh b/install/singbox.sh index ace3f9b..1769a1e 100644 --- a/install/singbox.sh +++ b/install/singbox.sh @@ -2,7 +2,7 @@ appName="Sing Box" debArch=$(uname -m) transArch=$debArch -targetVer="1.2.6" +targetVer=${INSTALL_VER:-1.3.0} case $debArch in "x86_64" | "amd64") transArch="amd64" diff --git a/install/xray.sh b/install/xray.sh index 4fbfe96..775413e 100644 --- a/install/xray.sh +++ b/install/xray.sh @@ -26,7 +26,11 @@ if [ -e "./xray.zip" ] ; then cp ./xray.zip $PREFIX/opt/xray/ else echo "Downloading xray..." - curl -sLo $PREFIX/opt/xray/xray.zip https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-$transArch.zip + if [ "$INSTALL_VER" != "" ] ; then + curl -sLo $PREFIX/opt/xray/xray.zip https://github.com/XTLS/Xray-core/releases/download/v${INSTALL_VER}/Xray-linux-$transArch.zip + else + curl -sLo $PREFIX/opt/xray/xray.zip https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-$transArch.zip + fi fi echo "Extracting archive..." cd $PREFIX/opt/xray/