fix: updater real download url

This commit is contained in:
手瓜一十雪 2024-03-18 19:37:57 +08:00
parent 911841401a
commit b5655a1a5f

View File

@ -13,7 +13,7 @@ export async function checkVersion() {
return { result: true, version: version }; return { result: true, version: version };
} }
export async function updateLLOneBot() { export async function updateLLOneBot() {
let mirrorGithubList = ["https://mirror.ghproxy.com"]; let mirrorGithubList = ["https://mirror.ghproxy.com/"];
const latestVersion = await getRemoteVersion(); const latestVersion = await getRemoteVersion();
if (latestVersion && latestVersion != "") { if (latestVersion && latestVersion != "") {
const downloadUrl = "https://github.com/LLOneBot/LLOneBot/releases/download/v" + latestVersion + "/LLOneBot.zip"; const downloadUrl = "https://github.com/LLOneBot/LLOneBot/releases/download/v" + latestVersion + "/LLOneBot.zip";