mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-28 18:18:31 +08:00
add hugo
This commit is contained in:
parent
3fffb29bd9
commit
48314db7b5
@ -25,3 +25,4 @@ 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)|
|
|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)|
|
||||||
|
|||||||
19
get/hugo.py
Normal file
19
get/hugo.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import requests
|
||||||
|
from module.check import check_download
|
||||||
|
|
||||||
|
name = "hugo"
|
||||||
|
|
||||||
|
release_url = "https://github.com/gohugoio/hugo/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)
|
||||||
|
|
||||||
|
# /v0.129.0/hugo_0.129.0_linux-amd64.deb
|
||||||
|
x64_deb_url = (
|
||||||
|
release_url + "/download/" + vversion + "/"
|
||||||
|
+ name + "_" + version + "_linux-amd64.deb"
|
||||||
|
)
|
||||||
|
|
||||||
|
check_download(name, version, x64_deb_url)
|
||||||
Loading…
x
Reference in New Issue
Block a user