Delta AutoUpdater module for @electron-delta/builder
- Discord like splash screen auto updater while booting the app
- Works with
@electron-delta/builder
, automatically uses delta updates for Windows NSIS - sha256 checksum for delta updates
npm install @electron-delta/updater
const DeltaUpdater = require("@electron-delta/updater");
const { app, BrowserWindow } = require("electron");
app.whenReady().then(async () => {
const deltaUpdater = new DeltaUpdater({
logger: require('electron-log'),
// optionally set the autoUpdater from electron-updater
autoUpdater: require("electron-updater").autoUpdater,
// Where delta.json is hosted, for github provider it's not required to set the hostURL
hostURL: "https://example.com/updates/windows/",
});
try {
await deltaUpdater.boot();
} catch (error) {
logger.error(error);
}
// create main app window after the deltaUpdater.boot()
createMainWindow();
});
Check the sample repo for full integration example with @electron-delta/updater electron-sample-app