electron APIs
- app
- BrowserWindow
- ipcRenderer
- ipcMain
- shell
- Menu
- dialog
- remote
- contextBridge
- Tray
- MenuItemConstructorOptions
- screen
- nativeImage
- clipboard
- session
- MenuItem
- protocol
- IpcRendererEvent
- globalShortcut
- webFrame
- IpcMainEvent
- Notification
- Rectangle
- nativeTheme
- BrowserWindowConstructorOptions
- systemPreferences
- WebContents
- IpcMainInvokeEvent
- net
- App
- IpcRenderer
- desktopCapturer
- OpenDialogOptions
- powerMonitor
- OpenDialogReturnValue
- Display
- DesktopCapturerSource
- MessageBoxOptions
- Event
- SaveDialogOptions
- HeadersReceivedResponse
- ContextMenuParams
- HandlerDetails
- WebPreferences
- BrowserView
- Session
- webContents
- NotificationConstructorOptions
- DownloadItem
- powerSaveBlocker
- ProtocolRequest
- ProtocolResponse
- TouchBar
- OnHeadersReceivedListenerDetails
- Extension
- IpcMain
- SaveDialogReturnValue
- OpenDialogSyncOptions
- NewWindowWebContentsEvent
- OpenExternalOptions
- Settings
- Point
- Clipboard
- autoUpdater
- NativeImage
Other Related APIs
electron#autoUpdater TypeScript Examples
The following examples show how to use
electron#autoUpdater.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: main.ts From wiregui with MIT License | 6 votes |
// Notify the user when there's a new update
autoUpdater.on("update-downloaded", (event, releaseNotes, releaseName) => {
const dialogOpts = {
type: "info",
buttons: ["Update", "Later"],
title: "Application Update",
message: process.platform === "win32" ? releaseNotes : releaseName,
detail: "A new version has been downloaded. Restart the application to apply the updates."
};
dialog.showMessageBox(dialogOpts).then((returnValue) => {
if (returnValue.response === 0) {
autoUpdater.quitAndInstall();
}
});
});