A drop-in module that adds autoUpdating capabilities to Electron apps
89
Create a helper that configures application updates via the package while migrating legacy configuration fields into the package's modern update-source format. The helper accepts legacy repo/host fields, normalizes them into the modern configuration, and invokes the package's updater initializer exactly once with the resulting options.
repo: "acme/tool" and host: "https://updates.example.com", it derives a modern update-source object with type: 'github', owner: 'acme', repo: 'tool', host: 'https://updates.example.com', and initializes the updater with that configuration. @test@generates
export type UpdateSource =
| { type: 'github'; owner: string; repo: string; host?: string }
| { type: 'static'; baseUrl: string; serverType?: 'json' | 'default' };
export interface UpdateOptions {
repo?: string;
host?: string;
source?: UpdateSource;
logger?: { log: (...args: any[]) => void };
notifyUser?: boolean;
}
export function configureUpdater(options: UpdateOptions): Promise<void>;Initializes update checking for Electron apps using the provided configuration. @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