Updated auto-updater.md

Missing documentation on the issue https://github.com/electron/electron/issues/10903
This commit is contained in:
Ajey Charantimath 2017-10-25 20:29:49 +05:30 committed by Cheng Zhao
parent 90582dfa4f
commit 8953042ee3

View file

@ -109,10 +109,12 @@ using this API.
Restarts the app and installs the update after it has been downloaded. It Restarts the app and installs the update after it has been downloaded. It
should only be called after `update-downloaded` has been emitted. 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 first and only emit `before-quit` event on `app` after that. This is different
from the normal quit event sequence. 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 [squirrel-mac]: https://github.com/Squirrel/Squirrel.Mac
[server-support]: https://github.com/Squirrel/Squirrel.Mac#server-support [server-support]: https://github.com/Squirrel/Squirrel.Mac#server-support
[squirrel-windows]: https://github.com/Squirrel/Squirrel.Windows [squirrel-windows]: https://github.com/Squirrel/Squirrel.Windows