A successfullyĭownloaded update will still be applied the next time the application starts. Note: It is not strictly necessary to handle this event. On Windows only releaseName is available. Event: 'update-downloaded' Įmitted when an update has been downloaded. Event: 'update-not-available' Įmitted when there is no available update. Event: 'update-available' Įmitted when there is an available update. Event: 'checking-for-update' Įmitted when checking if an update has started. The autoUpdater object emits the following events: Event: 'error' Įmitted when there is an error while updating. You can read the documents of Squirrel.Windows to get more detailsĪbout how Squirrel.Windows works. ![]() Like Squirrel.Mac, Windows can host updates on S3 or any other static file host. Not be able to pin your app properly in task bar. Same ID for your app with app.setAppUserModelId API, otherwise Windows will The installer generated with Squirrel will create a shortcut icon with anĪpplication User Model ID in the format ofĬom.squirrel.PACKAGE_ID.YOUR_EXE_WITHOUT_DOT_EXE, examples areĬom. and. It's also recommended to use electron-squirrel-startup to get desktop shortcuts for your app. When using electron-winstaller or Electron Forge make sure you do not try to update your app the first time it runs (Also see this issue for more info). Use the autoUpdater, so it is recommended that you use theĮlectron-winstaller, Electron Forge or the grunt-electron-installer package to generate a Windows installer. On Windows, you have to install your app into a user's machine before you can ![]() Note: Your application must be signed for automatic updates on macOS. NSAllowsArbitraryLoads key to their app's plist. Apps that need to disable ATS can add the Transport Security (ATS) applies to all requests made as part of the Requirements, you can read Server Support. ![]() Meaning you don't need any special setup to make it work. On macOS, the autoUpdater module is built upon Squirrel.Mac, In addition, there are some subtle differences on each platform: macOS There is no built-in supportįor auto-updater on Linux, so it is recommended to use theĭistribution's package manager to update your app. Platform Notices Ĭurrently, only macOS and Windows are supported. See also: A detailed guide about how to implement updates in your application.ĪutoUpdater is an EventEmitter. Enable apps to automatically update themselves.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |