笔记

42 字
1 分钟
批量下载 Github Release
2024-11-23

安装 Github 官方 CLi 并登录。

Terminal window
gh release list -R mihomo-party-org/mihomo-party | `
Select-String -Pattern 'v\d+\.\d+(\.\d+)?' | %{$_.Matches.Value} | `
ForEach-Object { `
Write-Host "Downloading version $_..." ; `
gh release download $_ -D D:/tmp/Download/pt/$_ -R mihomo-party-org/mihomo-party `
}