mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
Updated auto-updater.md
Missing documentation on the issue https://github.com/electron/electron/issues/10903
This commit is contained in:
committed by
Cheng Zhao
parent
90582dfa4f
commit
8953042ee3
@@ -109,10 +109,12 @@ using this API.
|
||||
Restarts the app and installs the update after it has been downloaded. It
|
||||
should only be called after `update-downloaded` has been emitted.
|
||||
|
||||
**Note:** `autoUpdater.quitAndInstall()` will close all application windows
|
||||
**Note 1:** `autoUpdater.quitAndInstall()` will close all application windows
|
||||
first and only emit `before-quit` event on `app` after that. This is different
|
||||
from the normal quit event sequence.
|
||||
|
||||
**Note 2:** If you don't call `autoUpdater.quitAndInstall()` after `update-downloaded` event has been emitted then you will get the updated app on the next start/run of your app.
|
||||
|
||||
[squirrel-mac]: https://github.com/Squirrel/Squirrel.Mac
|
||||
[server-support]: https://github.com/Squirrel/Squirrel.Mac#server-support
|
||||
[squirrel-windows]: https://github.com/Squirrel/Squirrel.Windows
|
||||
|
||||
Reference in New Issue
Block a user