A drop-in module that adds autoUpdating capabilities to Electron apps
89
Build a small update helper that listens for completed app update downloads and guides the user through applying the update. The helper should surface a restart-or-later choice once the download is finished, while allowing simple customization hooks.
@generates
export interface UpdatePromptOptions {
dialogText?: {
title?: string;
detail?: string;
restartButtonText?: string;
laterButtonText?: string;
};
notifier?: (info: {
releaseNotes: string;
releaseName: string;
releaseDate: Date;
updateURL: string;
}) => void;
logger?: { log(message: string): void };
}
export function initializeUpdatePrompt(options?: UpdatePromptOptions): void;Handles update downloads and exposes notification hooks for restart-or-later prompts.
@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