Open MeepoMaster opened 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 ;; 手动修改可以获取正式版。
建议添加可选测试版/正式版
"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 ;; 手动修改可以获取正式版。
建议添加可选测试版/正式版