From 346e5fd9a4fa0f390994edddb9818e81c6e5cb5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=BE=E4=BA=86=E4=B8=AA=E8=90=8C?= Date: Sat, 6 May 2023 09:11:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BA=94=E7=94=A8=E5=86=85=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=94=B9=E7=94=A8=E9=95=9C=E5=83=8F=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E5=8A=A0=E9=80=9F=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/tauri.conf.json | 4 +++- updater/updater.mjs | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 6639ac3f0a..0f0bef74bc 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -79,7 +79,9 @@ "updater": { "active": true, "dialog": true, - "endpoints": ["https://github.com/Pylogmon/pot/releases/latest/download/update.json"], + "endpoints": [ + "https://gh.pylogmon.cn/https://github.com/Pylogmon/pot/releases/latest/download/update.json" + ], "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDVBRTQxQTNDQjM5QzQzM0EKUldRNlE1eXpQQnJrV21mM1Bram5LRlF6UDA3K0Jab2FYL2lZSWhXTE5McWs2NUdJS0dtYkd5VGMK" }, "windows": [], diff --git a/updater/updater.mjs b/updater/updater.mjs index 823bbee9a0..3ab4932502 100644 --- a/updater/updater.mjs +++ b/updater/updater.mjs @@ -24,10 +24,10 @@ async function resolveUpdater() { notes: changelog, pub_date: new Date().toISOString(), platforms: { - "darwin-aarch64": { signature: darwin_aarch64_sig, url: darwin_aarch64 }, - "darwin-x86_64": { signature: darwin_x86_64_sig, url: darwin_x86_64 }, - "linux-x86_64": { signature: linux_x86_64_sig, url: linux_x86_64 }, - "windows-x86_64": { signature: windows_x86_64_sig, url: windows_x86_64 }, + "darwin-aarch64": { signature: darwin_aarch64_sig, url: 'https://gh.pylogmon.cn/' + darwin_aarch64 }, + "darwin-x86_64": { signature: darwin_x86_64_sig, url: 'https://gh.pylogmon.cn/' + darwin_x86_64 }, + "linux-x86_64": { signature: linux_x86_64_sig, url: 'https://gh.pylogmon.cn/' + linux_x86_64 }, + "windows-x86_64": { signature: windows_x86_64_sig, url: 'https://gh.pylogmon.cn/' + windows_x86_64 }, }, };