一条命令下载 Github 最新版本程序
这里以 AriaNg 仓库 https://github.com/mayswind/AriaNg 举例,下载最新的编译版本。
首先用 curl 通过 Github API 获取仓库最新版本的 JSON 数据,然后通过 jq 工具(需要安装)解析出下载地址,最后用 wget 完成下载。
curl -sL https://api.github.com/repos/mayswind/AriaNg/releases/latest \
| jq -r '.assets[1].browser_download_url' \
| wget -qi -
会员讨论区