Browse Source

Retrieve lastest version from github api

v2ray 9 năm trước cách đây
mục cha
commit
bc0819c05f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      release/install-release.sh

+ 1 - 1
release/install-release.sh

@@ -62,7 +62,7 @@ if pgrep "v2ray" > /dev/null ; then
   V2RAY_RUNNING=1
 fi
 
-VER="v1.7"
+VER="$(curl -s https://api.github.com/repos/v2ray/v2ray-core/releases/latest | grep 'tag_name' | cut -d\" -f4)"
 
 ARCH=$(uname -m)
 VDIS="64"