Skip to content

electron-delta/electron-delta-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@electron-delta/updater

Delta AutoUpdater module for @electron-delta/builder

Features

  1. Discord like splash screen auto updater while booting the app
  2. Works with @electron-delta/builder, automatically uses delta updates for Windows NSIS
  3. sha256 checksum for delta updates

Delta updates

Installation

npm install @electron-delta/updater

Example

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