From 78fc47a9c44d7aa3b1dce5220b1a6e71affb6f76 Mon Sep 17 00:00:00 2001 From: GyDi Date: Fri, 19 May 2023 09:44:31 +0800 Subject: [PATCH] chore: update gh proxy --- scripts/updater.mjs | 5 +---- src-tauri/tauri.conf.json | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/updater.mjs b/scripts/updater.mjs index 30d7e23..694a48d 100644 --- a/scripts/updater.mjs +++ b/scripts/updater.mjs @@ -117,10 +117,7 @@ async function resolveUpdater() { Object.entries(updateDataNew.platforms).forEach(([key, value]) => { if (value.url) { - updateDataNew.platforms[key].url = value.url.replace( - "https://github.com/", - "https://hub.fastgit.xyz/" - ); + updateDataNew.platforms[key].url = "https://ghproxy.com/" + value.url; } else { console.log(`[Error]: updateDataNew.platforms.${key} is null`); } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 61bd0e1..a2d1002 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -53,8 +53,8 @@ "updater": { "active": true, "endpoints": [ - "https://github.com/zzzgydi/clash-verge/releases/download/updater/update.json", - "https://hub.fastgit.xyz/zzzgydi/clash-verge/releases/download/updater/update-proxy.json" + "https://ghproxy.com/https://github.com/zzzgydi/clash-verge/releases/download/updater/update-proxy.json", + "https://github.com/zzzgydi/clash-verge/releases/download/updater/update.json" ], "dialog": false, "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDExNUFBNTBBN0FDNEFBRTUKUldUbHFzUjZDcVZhRVRJM25NS3NkSFlFVElxUkNZMzZ6bHUwRVJjb2F3alJXVzRaeDdSaTA2YWYK"