UNPKG

1.7 kBTypeScriptView Raw
1import { Arch } from "builder-util";
2import { FileTransformer } from "builder-util/out/fs";
3import { Lazy } from "lazy-val";
4import { CertificateFromStoreInfo, CertificateInfo, FileCodeSigningInfo } from "./codeSign/windowsCodeSign";
5import { AfterPackContext } from "./configuration";
6import { Target } from "./core";
7import { RequestedExecutionLevel, WindowsConfiguration } from "./options/winOptions";
8import { Packager } from "./packager";
9import { PlatformPackager } from "./platformPackager";
10import { VmManager } from "./vm/vm";
11export declare class WinPackager extends PlatformPackager<WindowsConfiguration> {
12 readonly cscInfo: Lazy<FileCodeSigningInfo | CertificateFromStoreInfo | null>;
13 private _iconPath;
14 readonly vm: Lazy<VmManager>;
15 readonly computedPublisherName: Lazy<string[] | null>;
16 readonly lazyCertInfo: Lazy<CertificateInfo | null>;
17 get isForceCodeSigningVerification(): boolean;
18 constructor(info: Packager);
19 get defaultTarget(): Array<string>;
20 protected doGetCscPassword(): string | undefined | null;
21 createTargets(targets: Array<string>, mapper: (name: string, factory: (outDir: string) => Target) => void): void;
22 getIconPath(): Promise<string | null>;
23 sign(file: string, logMessagePrefix?: string): Promise<boolean>;
24 private doSign;
25 signAndEditResources(file: string, arch: Arch, outDir: string, internalName?: string | null, requestedExecutionLevel?: RequestedExecutionLevel | null): Promise<void>;
26 private shouldSignFile;
27 protected createTransformerForExtraFiles(packContext: AfterPackContext): FileTransformer | null;
28 protected signApp(packContext: AfterPackContext, isAsar: boolean): Promise<boolean>;
29}