Merge pull request #10912 from Ajeey/patch-1

Updated auto-updater.md
This commit is contained in:
Cheng Zhao 2017-12-19 16:22:25 +09:00 committed by GitHub
commit c15e2e4d92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,9 +109,13 @@ 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
first and only emit `before-quit` event on `app` after that. This is different
from the normal quit event sequence.
Under the hood calling `autoUpdater.quitAndInstall()` will close all application
windows first, and automatically call `app.quit()` after all windows have been
closed.
**Note:** If the application is quit without calling this API after the
`update-downloaded` event has been emitted, the application will still be
replaced by the updated one on the next run.
[squirrel-mac]: https://github.com/Squirrel/Squirrel.Mac
[server-support]: https://github.com/Squirrel/Squirrel.Mac#server-support