A drop-in module that adds autoUpdating capabilities to Electron apps
89
Ensure the auto-update configuration for an Electron app is validated before any checks run, covering repository format, HTTPS endpoints, interval windows, and logger requirements.
owner/repo, an HTTPS host, a 10 minutes interval, and a logger exposing log initializes without throwing. @test/, the setup throws a validation error before scheduling updates. @test5 minutes or lacking a leading number triggers an error. @testlog function triggers an error. @test@generates
export type UpdateSource =
| { type: 'service'; repo?: string; host?: string }
| { type: 'static'; baseUrl: string };
export interface UpdateOptions {
updateSource?: UpdateSource;
repo?: string;
host?: string;
updateInterval?: string;
logger?: { log: (...args: unknown[]) => void; [key: string]: unknown };
notifyUser?: boolean;
onNotifyUser?: (info: unknown) => void;
}
/**
* Configure automatic updates for an Electron app, relying on the dependency to enforce
* repository, HTTPS endpoint, interval, and logger validity.
*/
export function configureUpdates(options?: UpdateOptions): void;Provides configuration, scheduling, and validation for Electron auto-updates.
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