Fix arm32 and arm64

arm32 还可以更细分
This commit is contained in:
RPRX 2020-08-09 16:18:45 +00:00 committed by GitHub
parent f56c72c25c
commit c4b1b0cc3a

View File

@ -13,7 +13,7 @@ mkdir -p $MODPATH/system/bin
mkdir -p $MODPATH/system/etc mkdir -p $MODPATH/system/etc
# download latest v2ray core from official link # download latest v2ray core from official link
ui_print "- Connect official V2Ray download link." ui_print "- Connect official V2Ray download link."
official_v2ray_link="https://github.com/v2ray/v2ray-core/releases" official_v2ray_link="https://github.com/v2fly/v2ray-core/releases"
latest_v2ray_version=`curl -k -s -I "${official_v2ray_link}/latest" | grep -i location | grep -o "tag.*" | grep -o "v[0-9.]*"` latest_v2ray_version=`curl -k -s -I "${official_v2ray_link}/latest" | grep -i location | grep -o "tag.*" | grep -o "v[0-9.]*"`
if [ "${latest_v2ray_version}" = "" ] ; then if [ "${latest_v2ray_version}" = "" ] ; then
ui_print "Error: Connect official V2Ray download link failed." ui_print "Error: Connect official V2Ray download link failed."
@ -22,10 +22,10 @@ fi
ui_print "- Download latest V2Ray core ${latest_v2ray_version}-${ARCH}" ui_print "- Download latest V2Ray core ${latest_v2ray_version}-${ARCH}"
case "${ARCH}" in case "${ARCH}" in
arm) arm)
download_v2ray_link="${official_v2ray_link}/download/${latest_v2ray_version}/v2ray-linux-arm.zip" download_v2ray_link="${official_v2ray_link}/download/${latest_v2ray_version}/v2ray-linux-arm32-v7a.zip"
;; ;;
arm64) arm64)
download_v2ray_link="${official_v2ray_link}/download/${latest_v2ray_version}/v2ray-linux-arm64.zip" download_v2ray_link="${official_v2ray_link}/download/${latest_v2ray_version}/v2ray-linux-arm64-v8a.zip"
;; ;;
x86) x86)
download_v2ray_link="${official_v2ray_link}/download/${latest_v2ray_version}/v2ray-linux-32.zip" download_v2ray_link="${official_v2ray_link}/download/${latest_v2ray_version}/v2ray-linux-32.zip"