参考 https://sobaigu.com/shell-get-lastest-version-from-github.html
# 定义版本变量 tag=$(wget -qO- -t1 -T2 "https://api.github.com/repos/lhc70000/iina/releases/latest" | jq -r '.tag_name') # 下载链接替换为变量 wget https://github.com/iina/iina/releases/download/${tag}/IINA.${tag}.dmg
![](https://cdn.1024.ee/wp-content/uploads/2021/04/mini_-2021-04-19-at-21.21.45-1280x1346.png)