-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
298 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/node_modules/electron-updater/out/BaseUpdater.js b/node_modules/electron-updater/out/BaseUpdater.js | ||
index f441eaa..b4e8f0a 100644 | ||
--- a/node_modules/electron-updater/out/BaseUpdater.js | ||
+++ b/node_modules/electron-updater/out/BaseUpdater.js | ||
@@ -14,11 +14,11 @@ class BaseUpdater extends AppUpdater_1.AppUpdater { | ||
// If NOT in silent mode use `autoRunAppAfterInstall` to determine whether to force run the app | ||
const isInstalled = this.install(isSilent, isSilent ? isForceRunAfter : this.autoRunAppAfterInstall); | ||
if (isInstalled) { | ||
- setImmediate(() => { | ||
+ setTimeout(() => { | ||
// this event is normally emitted when calling quitAndInstall, this emulates that | ||
require("electron").autoUpdater.emit("before-quit-for-update"); | ||
this.app.quit(); | ||
- }); | ||
+ }, 1000); | ||
} | ||
else { | ||
this.quitAndInstallCalled = false; |