Skip to content
New issue

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

box.tool的默认配置会导致安装/更新获取到singbox的最新pr版 #133

Open
MeepoMaster opened this issue Jul 24, 2024 · 0 comments

Comments

@MeepoMaster
Copy link

"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
;;
手动修改可以获取正式版。

建议添加可选测试版/正式版

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant