介绍
当我们日常使用一个github的仓库文件时,经常需要手动去查看和下载更新,即便有 scoop 这种工具,不过只是涵盖了一些比较流行的仓库和软件,另外个人维护的仓库很少被官方和第三方收录进去。
鉴于这种情况,我写了一个简单的github release 命令行工具,方便管理和更新,如果不够用欢迎自行PR。。。
下载
使用
环境配置
pip install requests pyyaml tqdm
配置文件填写
Config.yaml
关键词 | 是否必要 | 描述 |
---|---|---|
path | must | Your download path |
proxy | optional | When you use proxy software |
repos | must | Read below |
reos
以下4个都必须有,不过 key 可留空,tag 必须留空由脚本填写
Key | Value |
---|---|
name | 仓库名 |
author | 仓库作者 |
key | 如果有多个下载链接,填写文件名中的关键词,用来区分不同平台的下载 |
tag | 脚本自动填写 |
例子:
path: D:\Applications\OtherApps
proxy:
http: http://127.0.0.1:7890
https: http://127.0.0.1:7890
repos:
- author: SukiEva
key:
name: Myhhu
tag:
配置好后运行 main.py
命令
"list/ls : List installed apps"
"status/st : Show status and check for new app versions"
"update/up : Update all apps"
"config/cf : Open config file to add an app or modify other settings"
"exit/et : Exit the shell"
推荐
如果使用了Windows Powershell,可以设置别名来直接运行:
打开 Shell 运行:
notepad $PROFILE
复制粘贴下面内容到打开的文件里,记得替换下面的路径
function repo { python Your Download Path\main.py}