UNPKG

1.69 kBTypeScriptView Raw
1import { Arch } from "builder-util";
2import { Lazy } from "lazy-val";
3import { FileTransformer } from "builder-util/out/fs";
4import { AfterPackContext } from "./configuration";
5import { Target } from "./core";
6import { RequestedExecutionLevel, WindowsConfiguration } from "./options/winOptions";
7import { Packager } from "./packager";
8import { PlatformPackager } from "./platformPackager";
9import { VmManager } from "./vm/vm";
10import { CertificateFromStoreInfo, FileCodeSigningInfo } from "./windowsCodeSign";
11export declare class WinPackager extends PlatformPackager<WindowsConfiguration> {
12 readonly cscInfo: Lazy<FileCodeSigningInfo | CertificateFromStoreInfo | null>;
13 private _iconPath;
14 readonly vm: Lazy<VmManager>;
15 readonly computedPublisherSubjectOnWindowsOnly: Lazy<string | null>;
16 readonly computedPublisherName: Lazy<string[] | null>;
17 readonly isForceCodeSigningVerification: boolean;
18 constructor(info: Packager);
19 readonly 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<void>;
24 private doSign;
25 signAndEditResources(file: string, arch: Arch, outDir: string, internalName?: string | null, requestedExecutionLevel?: RequestedExecutionLevel | null): Promise<void>;
26 private isSignDlls;
27 protected createTransformerForExtraFiles(packContext: AfterPackContext): FileTransformer | null;
28 protected signApp(packContext: AfterPackContext, isAsar: boolean): Promise<any>;
29}