mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-28 18:18:31 +08:00
add todesk
This commit is contained in:
parent
d7da1cfac2
commit
079f3779fd
@ -39,6 +39,7 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://packages.wcbing.top/d
|
||||
|360安全浏览器|browser360-cn-stable|[官网](https://browser.360.net/gc/)|
|
||||
|滴答清单|dida|[官网](https://dida365.com/download)|
|
||||
|向日葵|sunloginclient<br />提取自 Debian 12 的依赖:<br />gconf2-common<br />libgconf-2-4|[官网](https://sunlogin.oray.com/download/linux)|
|
||||
|ToDesk|todesk|[官网](https://www.todesk.com/linux.html)|
|
||||
|
||||
### Github Releses
|
||||
|
||||
|
||||
@ -8,7 +8,8 @@ def download(url, file_type):
|
||||
if not os.path.exists(file_dir):
|
||||
os.makedirs(file_dir)
|
||||
file_path = os.path.join(file_type, url.split("?")[0])
|
||||
subprocess.run(["curl", "-fsLo", file_path, url])
|
||||
# 用 curl 模拟 apt 下载文件,User-Agent 来自 Debian 12
|
||||
subprocess.run(["curl", "-H", "User-Agent: Debian APT-HTTP/1.3 (2.6.1)", "-fsLo", file_path, url])
|
||||
|
||||
|
||||
def check_download(name, version, url, arch, file_type):
|
||||
|
||||
12
get/todesk.py
Normal file
12
get/todesk.py
Normal file
@ -0,0 +1,12 @@
|
||||
import requests
|
||||
import re
|
||||
from module.check import deb
|
||||
|
||||
res = requests.get("https://www.todesk.com/linux.html")
|
||||
|
||||
x64_url = re.findall("https://[0-9a-zA-Z_/.-]*.deb", res.text)[0]
|
||||
|
||||
# https://dl.todesk.com/linux/todesk-v4.7.2.0-amd64.deb
|
||||
version = x64_url.split("-")[1]
|
||||
|
||||
deb("todesk", version, x64_url)
|
||||
Loading…
x
Reference in New Issue
Block a user