get google-chrome from offical repo

This commit is contained in:
wcbing 2024-09-02 12:43:46 +08:00
parent a39d3a9fdd
commit 80ddf48f3b
3 changed files with 17 additions and 13 deletions

View File

@ -35,7 +35,7 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://packages.wcbing.top/d
|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)| |Visual Studio Code|code|[官网](https://code.visualstudio.com)|
|Microsoft Edge|microsoft-edge-stable|[官网](https://www.microsoft.com/en-us/edge/download)| |Microsoft Edge|microsoft-edge-stable|[官网](https://www.microsoft.com/en-us/edge/download)|
|Google Chrome|google-chrome-stable|[官网](https://www.google.com/chrome/)| |Google Chrome|google-chrome-stable<br />google-chrome-beta<br />google-chrome-unstable|官方仓库|
|Obsidian|obsidian|[Github Releases](https://github.com/obsidianmd/obsidian-releases/releases)| |Obsidian|obsidian|[Github Releases](https://github.com/obsidianmd/obsidian-releases/releases)|
|WPS Office|wps-office|[官网](https://linux.wps.cn/)| |WPS Office|wps-office|[官网](https://linux.wps.cn/)|
|百度网盘|baidunetdisk|[官网](https://pan.baidu.com/download)| |百度网盘|baidunetdisk|[官网](https://pan.baidu.com/download)|

View File

@ -1,12 +0,0 @@
import requests
import re
from module.check import deb
deb_repo = "https://dl.google.com/linux/chrome/deb/"
x64_deb_list = requests.get(deb_repo + "dists/stable/main/binary-amd64/Packages").text
version = re.findall("-stable\nVersion: (.+)", x64_deb_list)[0]
x64_deb_url = deb_repo + re.findall("pool/.+-stable_.+.deb", x64_deb_list)[0]
deb("google-chrome-stable", version, x64_deb_url)

16
merge/google-chrome.py Normal file
View File

@ -0,0 +1,16 @@
import requests
repo = "https://dl.google.com/linux/chrome/deb/"
x64_deb_Packages_url = repo + "dists/stable/main/binary-amd64/Packages"
x64_deb_Packages = requests.get(x64_deb_Packages_url).text
x64_deb_content = x64_deb_Packages.replace("Filename: ", "Filename: " + repo)
# print(x64_deb_content)
with open("deb/Packages", "a+") as f:
f.write(x64_deb_content)
f.close()
print("google-chrome repo: done")