UNPKG

1.46 kBTypeScriptView Raw
1import { AllPublishOptions } from "builder-util-runtime";
2import { AppAdapter } from "./AppAdapter";
3import { DownloadUpdateOptions } from "./AppUpdater";
4import { BaseUpdater, InstallOptions } from "./BaseUpdater";
5import { verifyUpdateCodeSignature } from "./main";
6export declare class NsisUpdater extends BaseUpdater {
7 /**
8 * Specify custom install directory path
9 *
10 */
11 installDirectory?: string;
12 constructor(options?: AllPublishOptions | null, app?: AppAdapter);
13 protected _verifyUpdateCodeSignature: verifyUpdateCodeSignature;
14 /**
15 * The verifyUpdateCodeSignature. You can pass [win-verify-signature](https://github.com/beyondkmp/win-verify-trust) or another custom verify function: ` (publisherName: string[], path: string) => Promise<string | null>`.
16 * The default verify function uses [windowsExecutableCodeSignatureVerifier](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts)
17 */
18 get verifyUpdateCodeSignature(): verifyUpdateCodeSignature;
19 set verifyUpdateCodeSignature(value: verifyUpdateCodeSignature);
20 /*** @private */
21 protected doDownloadUpdate(downloadUpdateOptions: DownloadUpdateOptions): Promise<Array<string>>;
22 private verifySignature;
23 protected doInstall(options: InstallOptions): boolean;
24 private differentialDownloadInstaller;
25 private differentialDownloadWebPackage;
26}
27
\No newline at end of file