A drop-in module that adds autoUpdating capabilities to Electron apps
89
Enable periodic update checks driven by human-readable interval strings, with sensible defaults and guardrails for invalid input.
10 minutes cadence and performs the initial check before scheduling repeats @test5 minutes surfaces a descriptive error and does not start scheduling @test15 minutes, triggers one immediate update check and then schedules recurring checks at that cadence @test@generates
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;Provides update orchestration and interval-driven polling. @satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-update-electron-appdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10