We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"sing-box") api_url="https://api.github.com/repos/SagerNet/sing-box/releases/latest" url_down="https://github.com/SagerNet/sing-box/releases"
latest_version=$(busybox wget --no-check-certificate -qO- "${api_url}" | grep "tag_name" | busybox grep -oE "v[0-9]+.[0-9]+.[0-9]+" | head -1)
if [ -z "$latest_version" ]; then log Error "Failed to get latest stable version of sing-box" return 1 fi
download_link="${url_down}/download/${latest_version}/sing-box-${latest_version#v}-${platform}-${arch}.tar.gz" log Debug "download ${download_link}" upfile "${box_dir}/${file_kernel}.tar.gz" "${download_link}" && xkernel ;; 手动修改可以获取正式版。
建议添加可选测试版/正式版
The text was updated successfully, but these errors were encountered:
[box.tool] Add option to download sing-box "Pre-release" and "Latest …
c32eb04
…release" #133
No branches or pull requests
"sing-box")
api_url="https://api.github.com/repos/SagerNet/sing-box/releases/latest"
url_down="https://github.com/SagerNet/sing-box/releases"
latest_version=$(busybox wget --no-check-certificate -qO- "${api_url}" | grep "tag_name" | busybox grep -oE "v[0-9]+.[0-9]+.[0-9]+" | head -1)
if [ -z "$latest_version" ]; then
log Error "Failed to get latest stable version of sing-box"
return 1
fi
download_link="${url_down}/download/${latest_version}/sing-box-${latest_version#v}-${platform}-${arch}.tar.gz"
log Debug "download ${download_link}"
upfile "${box_dir}/${file_kernel}.tar.gz" "${download_link}" && xkernel
;;
手动修改可以获取正式版。
建议添加可选测试版/正式版
The text was updated successfully, but these errors were encountered: