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-1/

Scheduled Update Polling

Enable periodic update checks driven by human-readable interval strings, with sensible defaults and guardrails for invalid input.

Capabilities

Human-readable interval validation

  • Omitting the interval uses a 10 minutes cadence and performs the initial check before scheduling repeats @test
  • Providing an interval shorter than 5 minutes surfaces a descriptive error and does not start scheduling @test
  • Passing an unparsable interval string rejects the configuration before any update checks run @test

Recurring update checks

  • With a valid interval string such as 15 minutes, triggers one immediate update check and then schedules recurring checks at that cadence @test

Implementation

@generates

API

export interface UpdatePollingOptions {
  /** Human-readable interval string, e.g. "15 minutes"; defaults to "10 minutes" */
  interval?: string;
  /** Optional logger with a log method used for diagnostic output */
  logger?: { log: (...args: unknown[]) => void };
}

/**
 * Configures automatic update checks driven by the configured interval.
 *
 * - Enforces the minimum supported cadence.
 * - Runs an initial check before scheduling subsequent checks.
 * - Uses the provided logger if supplied.
 */
export function setupScheduledUpdates(options?: UpdatePollingOptions): void;

Dependencies { .dependencies }

update-electron-app { .dependency }

Provides update orchestration and interval-driven polling. @satisfied-by

Install with Tessl CLI

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

tile.json