taamarin / box_for_magisk

Transparent Proxy for Android(root)
GNU General Public License v3.0
1.31k stars 131 forks source link

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

Open MeepoMaster opened 4 months ago

MeepoMaster commented 4 months ago

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

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