This commit is contained in:
wcbing 2024-08-01 20:02:37 +08:00
parent d585f720ca
commit 587e75f538
2 changed files with 13 additions and 0 deletions

View File

@ -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)|
|hugo|hugo|[Github Releases](https://github.com/gohugoio/hugo/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
View 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)