mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-29 02:28:30 +08:00
add clash-verge, mihomo
This commit is contained in:
parent
5d0ba0e217
commit
3fffb29bd9
@ -23,3 +23,5 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://deb.wcbing.top /" | s
|
|||||||
|软件名|包名|渠道|
|
|软件名|包名|渠道|
|
||||||
|-|-|-|
|
|-|-|-|
|
||||||
|QQ|linuxqq|[官网](https://im.qq.com/linuxqq/)|
|
|QQ|linuxqq|[官网](https://im.qq.com/linuxqq/)|
|
||||||
|
|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)|
|
||||||
|
|||||||
18
get/clash-verge.py
Normal file
18
get/clash-verge.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import requests
|
||||||
|
from module.check import check_download
|
||||||
|
|
||||||
|
name = "clash-verge"
|
||||||
|
|
||||||
|
release_url = "https://github.com/clash-verge-rev/clash-verge-rev/releases"
|
||||||
|
|
||||||
|
res = requests.head(release_url + "/latest", allow_redirects=False)
|
||||||
|
vversion = requests.Session().get_redirect_target(res).split("/")[-1] # v1.1.1
|
||||||
|
version = vversion[1:] # 1.1.1
|
||||||
|
# print(vversion, version)
|
||||||
|
|
||||||
|
# /v1.7.5/clash-verge_1.7.5_amd64.deb
|
||||||
|
x64_deb_url = (
|
||||||
|
release_url + "/download/" + vversion + "/" + name + "_" + version + "_amd64.deb"
|
||||||
|
)
|
||||||
|
|
||||||
|
check_download(name, version, x64_deb_url)
|
||||||
19
get/mihomo.py
Normal file
19
get/mihomo.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import requests
|
||||||
|
from module.check import check_download
|
||||||
|
|
||||||
|
name = "mihomo"
|
||||||
|
|
||||||
|
release_url = "https://github.com/MetaCubeX/mihomo/releases"
|
||||||
|
|
||||||
|
res = requests.head(release_url + "/latest", allow_redirects=False)
|
||||||
|
vversion = requests.Session().get_redirect_target(res).split("/")[-1] # v1.1.1
|
||||||
|
version = vversion[1:] # 1.1.1
|
||||||
|
# print(vversion, version)
|
||||||
|
|
||||||
|
# /v1.18.6/mihomo-linux-amd64-compatible-v1.18.6.deb
|
||||||
|
x64_deb_url = (
|
||||||
|
release_url + "/download/" + vversion + "/"
|
||||||
|
+ name + "-linux-amd64-compatible-" + vversion + ".deb"
|
||||||
|
)
|
||||||
|
|
||||||
|
check_download(name, version, x64_deb_url)
|
||||||
Loading…
x
Reference in New Issue
Block a user