mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-28 18:18:31 +08:00
add google-chrome-stable
This commit is contained in:
parent
f6b7309f81
commit
3cf2c25629
@ -33,6 +33,7 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://deb.wcbing.top /" | s
|
||||
|RustDesk|rustdesk|[Github Releases](https://github.com/rustdesk/rustdesk/releases)|
|
||||
|Visual Studio Code|code|[官网](https://code.visualstudio.com)|
|
||||
|Microsoft Edge|microsoft-edge-stable|[官网](https://www.microsoft.com/en-us/edge/download)|
|
||||
|Google Chrome|google-chrome-stable|[官网](https://www.google.com/chrome/)|
|
||||
|
||||
|
||||
## 自行建立仓库
|
||||
|
||||
12
get/google-chrome-stable.py
Normal file
12
get/google-chrome-stable.py
Normal file
@ -0,0 +1,12 @@
|
||||
import requests
|
||||
import json
|
||||
from module.check import check_download
|
||||
|
||||
version_url = "https://versionhistory.googleapis.com/v1/chrome/platforms/linux/channels/stable/versions"
|
||||
res = requests.get(version_url)
|
||||
version = json.loads(res.text)["versions"][0]["version"]
|
||||
# print(version)
|
||||
|
||||
x64_deb_url = "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
|
||||
|
||||
check_download("google-chrome-stable", version, x64_deb_url)
|
||||
Loading…
x
Reference in New Issue
Block a user