fix asset.find for win32
This commit is contained in:
parent
1abb25c204
commit
0299313818
1 changed files with 1 additions and 2 deletions
|
@ -29,8 +29,7 @@ handle(IpcEvents.UPDATER_DOWNLOAD, () => {
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
||||||
case "win32":
|
case "win32":
|
||||||
return assets.find(a => {
|
return assets.find(a => {
|
||||||
if (PORTABLE && a.name.endsWith("win.zip")) return true;
|
return PORTABLE ? a.name.endsWith("win.zip") : a.name.endsWith(".exe");
|
||||||
if (!PORTABLE && a.name.endsWith(".exe")) return true;
|
|
||||||
})!.browser_download_url;
|
})!.browser_download_url;
|
||||||
case "darwin":
|
case "darwin":
|
||||||
return assets.find(a =>
|
return assets.find(a =>
|
||||||
|
|
Reference in a new issue