electron updater.Class.MacUpdater
Electron-Builder / electron-updater / MacUpdater
Extends¶
Constructors¶
new MacUpdater()¶
new MacUpdater(
options
?,app
?):MacUpdater
Parameters¶
• options?: AllPublishOptions
• app?: AppAdapter
Returns¶
Overrides¶
Methods¶
doDownloadUpdate()¶
protected
doDownloadUpdate(downloadUpdateOptions
):Promise
<string
[]>
Parameters¶
• downloadUpdateOptions: DownloadUpdateOptions
Returns¶
Promise
<string
[]>
Overrides¶
quitAndInstall()¶
quitAndInstall():
void
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.
Returns¶
void