diff --git a/README.md b/README.md index ec8c027..f59dafd 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://packages.wcbing.top/d |飞书|bytedance-feishu-stable|[官网](https://www.feishu.cn/download)| |Xmind|xmind-vana|[官网](https://xmind.cn/download/)| |draw.io|draw.io|[Github Releases](https://github.com/jgraph/drawio-desktop/releases)| +|uTools|utools|[官网](https://u.tools/download/)| ### 合并自官方 repo diff --git a/get/utools.py b/get/utools.py new file mode 100644 index 0000000..43d3006 --- /dev/null +++ b/get/utools.py @@ -0,0 +1,11 @@ +import requests +import re +from module.check import deb + +res = requests.get("https://u.tools/download/") +res.encoding = "utf-8" + +x64_deb_url = re.findall(r"https:\/\/[^ ]+\.deb", res.text)[0] +version = re.findall(".*utools_(.+)_amd64.deb", x64_deb_url)[0] + +deb("utools", version, x64_deb_url)