Skip to content

Commit

Permalink
feat: 应用内更新改用镜像地址加速下载
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon committed May 6, 2023
1 parent 6f13b9b commit 346e5fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down
8 changes: 4 additions & 4 deletions updater/updater.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
},
};

Expand Down

0 comments on commit 346e5fd

Please sign in to comment.