simplified updater logic

This commit is contained in:
MrGarlic1 2024-05-09 17:35:16 -04:00 committed by GitHub
parent 0299313818
commit 4d0867d6f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,7 @@ handle(IpcEvents.UPDATER_DOWNLOAD, () => {
switch (process.platform) {
case "win32":
return assets.find(a => {
return PORTABLE ? a.name.endsWith("win.zip") : a.name.endsWith(".exe");
return a.name.endsWith(PORTABLE ? "win.zip" : ".exe");
})!.browser_download_url;
case "darwin":
return assets.find(a =>