simplified updater logic
This commit is contained in:
parent
0299313818
commit
4d0867d6f5
1 changed files with 1 additions and 1 deletions
|
@ -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 =>
|
||||
|
|
Reference in a new issue