CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-update-electron-app

A drop-in module that adds autoUpdating capabilities to Electron apps

89

1.08x
Overview
Eval results
Files

task.mdevals/scenario-2/

Electron Update Bootstrap

Configure the Electron main process to enable default update checks through the public update service, using repository details derived from the host app when not explicitly provided, and to start the process only once the app is packaged and ready.

Capabilities

Derive repository identity

  • When called without explicit repository info, resolves the owner/repo pair from the app's package metadata and initializes the updater using that value @test

Respect packaging readiness

  • If the app is not packaged, skip updater setup and log a single informational message instead of attempting a network call @test
  • When packaged but not ready yet, wait for the ready signal before configuring the updater, then trigger an initial update check exactly once @test

Explicit repository override

  • Accepts an optional override repository string that supersedes package metadata and still targets the default update service host @test

Implementation

@generates

API

export interface AutoUpdateBootstrapOptions {
  /**
   * Optional repository identifier in `owner/repo` form; defaults to package metadata when omitted.
   */
  readonly repository?: string;
  /**
   * Optional logger with a `log` method used for informational output.
   */
  readonly logger?: { log(message: string): void };
}

export function bootstrapAutoUpdates(options?: AutoUpdateBootstrapOptions): void;

Dependencies { .dependencies }

update-electron-app { .dependency }

Provides the default update.electronjs.org bootstrapper for Electron applications.

Install with Tessl CLI

npx tessl i tessl/npm-update-electron-app

tile.json