mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-28 18:18:31 +08:00
add code
This commit is contained in:
parent
d585f720ca
commit
587e75f538
@ -31,6 +31,7 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://deb.wcbing.top /" | s
|
|||||||
|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)|
|
|RustDesk|rustdesk|[Github Releases](https://github.com/rustdesk/rustdesk/releases)|
|
||||||
|
|Visual Studio Code|code|[官网](https://code.visualstudio.com)|
|
||||||
|
|
||||||
|
|
||||||
## 自行建立仓库
|
## 自行建立仓库
|
||||||
|
|||||||
12
get/code.py
Normal file
12
get/code.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import requests
|
||||||
|
import re
|
||||||
|
from module.check import check_download
|
||||||
|
|
||||||
|
x64_deb_req = "https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64"
|
||||||
|
|
||||||
|
res = requests.head(x64_deb_req)
|
||||||
|
version = re.findall("_(.*)-", res.headers["Location"])[0]
|
||||||
|
x64_deb_url = res.headers["Location"]
|
||||||
|
# print(version, x64_deb_url)
|
||||||
|
|
||||||
|
check_download("code", version, x64_deb_url)
|
||||||
Loading…
x
Reference in New Issue
Block a user