소스 검색

Retrieve lastest version from github api

v2ray 9 년 전
부모
커밋
bc0819c05f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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"