fix: macOS updater URL for different architectures
This commit is contained in:
parent
d884b7d3d6
commit
8df685bfd5
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,11 @@ ipcMain.handle(IpcEvents.UPDATER_DOWNLOAD, () => {
|
||||||
return portable ? !isSetup : isSetup;
|
return portable ? !isSetup : isSetup;
|
||||||
})!.browser_download_url;
|
})!.browser_download_url;
|
||||||
case "darwin":
|
case "darwin":
|
||||||
return assets.find(a => a.name.endsWith(".dmg"))!.browser_download_url;
|
return assets.find(a =>
|
||||||
|
process.arch === "arm64"
|
||||||
|
? a.name.endsWith("-arm64-mac.zip")
|
||||||
|
: a.name.endsWith("-mac.zip") && !a.name.includes("arm64")
|
||||||
|
)!.browser_download_url;
|
||||||
case "linux":
|
case "linux":
|
||||||
return updateData.release.html_url;
|
return updateData.release.html_url;
|
||||||
default:
|
default:
|
||||||
|
|
Reference in a new issue