mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-28 18:18:31 +08:00
add rustdesk
This commit is contained in:
parent
a09dee976a
commit
d585f720ca
@ -30,6 +30,7 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://deb.wcbing.top /" | s
|
|||||||
|Clash Verge Rev|clash-verge|[Github Releses](https://github.com/clash-verge-rev/clash-verge-rev/releases)|
|
|Clash Verge Rev|clash-verge|[Github Releses](https://github.com/clash-verge-rev/clash-verge-rev/releases)|
|
||||||
|mihomo|mihomo|[Github Releases](https://github.com/MetaCubeX/mihomo/releases)|
|
|mihomo|mihomo|[Github Releases](https://github.com/MetaCubeX/mihomo/releases)|
|
||||||
|hugo|hugo|[Github Releases](https://github.com/gohugoio/hugo/releases)|
|
|hugo|hugo|[Github Releases](https://github.com/gohugoio/hugo/releases)|
|
||||||
|
|RustDesk|rustdesk|[Github Releases](https://github.com/rustdesk/rustdesk/releases)|
|
||||||
|
|
||||||
|
|
||||||
## 自行建立仓库
|
## 自行建立仓库
|
||||||
|
|||||||
17
get/rustdesk.py
Normal file
17
get/rustdesk.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import requests
|
||||||
|
from module.check import check_download
|
||||||
|
|
||||||
|
name = "rustdesk"
|
||||||
|
|
||||||
|
release_url = "https://github.com/rustdesk/rustdesk/releases"
|
||||||
|
|
||||||
|
res = requests.head(release_url + "/latest", allow_redirects=False)
|
||||||
|
version = requests.Session().get_redirect_target(res).split("/")[-1] # 1.1.1
|
||||||
|
# print(version)
|
||||||
|
|
||||||
|
# /1.2.7/rustdesk-1.2.7-x86_64.deb
|
||||||
|
x64_deb_url = (
|
||||||
|
release_url + "/download/" + version + "/" + name + "-" + version + "-x86_64.deb"
|
||||||
|
)
|
||||||
|
|
||||||
|
check_download(name, version, x64_deb_url)
|
||||||
Loading…
x
Reference in New Issue
Block a user