new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Electron · API · all subjects

autoupdater/methods

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

autoUpdater.setFeedURL() method

autoUpdater.setFeedURL(options) sets the URL and initializes the auto updater. The options parameter is an Object with the following properties: url (string, required) - The update server URL. For Windows MSIX, this can be either a direct link to an MSIX file (e.g., https://example.com/update.msix) or a JSON endpoint that returns update information. headers (Record<string, string>, optional, macOS only) - HTTP request headers. serverType (string, optional, macOS only) - Can be 'json' or 'default'; see Squirrel.Mac README for details. allowAnyVersion (boolean, optional, Windows only) - If true, allows downgrades to older versions for MSIX packages; defaults to false.

autoUpdater.getFeedURL() method

autoUpdater.getFeedURL() returns a string containing the current update feed URL.

autoUpdater.checkForUpdates() method

autoUpdater.checkForUpdates() asks the server whether there is an update. setFeedURL() must be called before using this API. If an update is available it will be downloaded automatically. Calling autoUpdater.checkForUpdates() twice will download the update two times.

autoUpdater.quitAndInstall() method

autoUpdater.quitAndInstall() restarts the app and installs the update after it has been downloaded. It should only be called after the 'update-downloaded' event has been emitted. Under the hood it closes all application windows first and automatically calls app.quit() after all windows have been closed. It is not strictly necessary to call this function to apply an update; a successfully downloaded update will always be applied the next time the application starts.

Give your agent this brain