add utools

This commit is contained in:
wcbing 2024-09-24 21:26:11 +08:00
parent 9db0562860
commit 0da5bfa808
2 changed files with 12 additions and 0 deletions

View File

@ -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)| |飞书|bytedance-feishu-stable|[官网](https://www.feishu.cn/download)|
|Xmind|xmind-vana|[官网](https://xmind.cn/download/)| |Xmind|xmind-vana|[官网](https://xmind.cn/download/)|
|draw.io|draw.io|[Github Releases](https://github.com/jgraph/drawio-desktop/releases)| |draw.io|draw.io|[Github Releases](https://github.com/jgraph/drawio-desktop/releases)|
|uTools|utools|[官网](https://u.tools/download/)|
### 合并自官方 repo ### 合并自官方 repo

11
get/utools.py Normal file
View File

@ -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)