diff --git a/README.md b/README.md index 103fb02..2cc98e3 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://packages.wcbing.top/d |TinyGo|tinygo|[Github Releases](https://github.com/tinygo-org/tinygo/releases)| |LocalSend|localsend|[Github Releases](https://github.com/localsend/localsend/releases)| |Motrix|motrix|[Github Releases](https://github.com/agalwood/Motrix/releases)| +|滴答清单|dida|[官网](https://dida365.com/download) ### 合并自官方 repo diff --git a/get/dida.py b/get/dida.py new file mode 100644 index 0000000..46a31cb --- /dev/null +++ b/get/dida.py @@ -0,0 +1,11 @@ +import requests +from module.check import deb + +x64_deb_req = requests.head("https://dida365.com/static/getApp/download?type=linux_deb_x64", headers={"User-Agent": "curl/8.10.1"}) +# arm64_deb_req = requests.head("https://dida365.com/static/getApp/download?type=linux_deb_arm64", headers={"User-Agent": "curl/8.10.1"}) + +x64_deb_url = x64_deb_req.headers["location"] +# https://cdn.dida365.cn/download/linux/linux_deb_x64/dida-6.0.0-amd64.deb +version = x64_deb_url.split("-")[-2] + +deb("dida", version, x64_deb_url)