A drop-in module that adds autoUpdating capabilities to Electron apps
89
Ensure automatic update wiring only proceeds for packaged builds on supported platforms, deferring setup until the host application is ready. Supported platforms are limited to darwin and win32.
started: false and reason "not-packaged". @testlinux, update initialization is skipped, the dependency's updater is never invoked, and the function resolves with started: false and reason "unsupported-platform". @teststarted: true and no reason. @test@generates
export interface UpdateGuardResult {
started: boolean;
reason?: "not-packaged" | "unsupported-platform";
}
export interface AppLike {
isPackaged: boolean;
whenReady(): Promise<void>;
}
export interface LoggerLike {
log(...args: unknown[]): void;
}
export function runPackagedUpdateGuard(
app: AppLike,
platform: NodeJS.Platform,
logger?: LoggerLike
): Promise<UpdateGuardResult>;Auto-update orchestration for Electron apps.
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