chore: fix updater

This commit is contained in:
GyDi 2023-09-11 10:12:40 +08:00
parent c843bddbfe
commit 17a2722e6d
No known key found for this signature in database
GPG Key ID: 9C3AD40F1F99880A

View File

@ -68,12 +68,14 @@ async function resolveUpdater() {
if (name.endsWith(".app.tar.gz") && !name.includes("aarch")) { if (name.endsWith(".app.tar.gz") && !name.includes("aarch")) {
updateData.platforms.darwin.url = browser_download_url; updateData.platforms.darwin.url = browser_download_url;
updateData.platforms["darwin-intel"].url = browser_download_url; updateData.platforms["darwin-intel"].url = browser_download_url;
updateData.platforms["darwin-x86_64"].url = browser_download_url;
} }
// darwin signature (intel) // darwin signature (intel)
if (name.endsWith(".app.tar.gz.sig") && !name.includes("aarch")) { if (name.endsWith(".app.tar.gz.sig") && !name.includes("aarch")) {
const sig = await getSignature(browser_download_url); const sig = await getSignature(browser_download_url);
updateData.platforms.darwin.signature = sig; updateData.platforms.darwin.signature = sig;
updateData.platforms["darwin-intel"].signature = sig; updateData.platforms["darwin-intel"].signature = sig;
updateData.platforms["darwin-x86_64"].signature = sig;
} }
// darwin url (aarch) // darwin url (aarch)