This commit is contained in:
wcbing 2024-09-24 20:47:04 +08:00
parent a3d545b570
commit 2f627e986a
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,8 @@ repo info json format:
# get version info from repo # get version info from repo
for i in github_info_list: for i in github_info_list:
release_url = f"https://github.com/{i["repo"]}/releases/" repo = i["repo"]
release_url = f"https://github.com/{repo}/releases/"
latest_req = requests.head(release_url + "latest") latest_req = requests.head(release_url + "latest")
vversion = latest_req.headers["Location"].split("/")[-1] # v1.1.1 vversion = latest_req.headers["Location"].split("/")[-1] # v1.1.1
version = vversion[1:] # 1.1.1 version = vversion[1:] # 1.1.1

View File

@ -11,7 +11,7 @@
}, },
{ {
"name": "steam", "name": "steam",
"repo": "https://repo.steampowered.com/steam/dists/stable/steam/binary-amd64/Packages", "repo": "https://repo.steampowered.com/steam/",
"amd64_path": "dists/stable/steam/binary-amd64/Packages" "amd64_path": "dists/stable/steam/binary-amd64/Packages"
} }
] ]