1 KiB
1 KiB
Synopsis
auto-upater module is a simple wrap around the Sparkle framework, it provides auto update service for the application.
Before using this module, you should edit the Info.plist following https://github.com/andymatuschak/Sparkle/wiki.
Event: will-install-update
eventEventversionStringcontinueUpdateFunction
This event is emitted when the update is found and going to be installed. Calling event.preventDefault() would pause it, and you can call continueUpdate to continue the update.
Event: ready-for-update-on-quit
eventEventversionStringquitAndUpdateFunction
This event is emitted when user chose to delay the update until the quit. Calling quitAndUpdate() would quit the application and install the update.
autoUpdater.setFeedUrl(url)
urlString
autoUpdater.setAutomaticallyChecksForUpdates(flag)
flagBoolean
autoUpdater.setAutomaticallyDownloadsUpdates(flag)
flagBoolean