winPackager.d.ts 1.7 KB

1234567891011121314151617181920212223242526272829
  1. import { Arch } from "builder-util";
  2. import { FileTransformer } from "builder-util/out/fs";
  3. import { Lazy } from "lazy-val";
  4. import { CertificateFromStoreInfo, CertificateInfo, FileCodeSigningInfo } from "./codeSign/windowsCodeSign";
  5. import { AfterPackContext } from "./configuration";
  6. import { Target } from "./core";
  7. import { RequestedExecutionLevel, WindowsConfiguration } from "./options/winOptions";
  8. import { Packager } from "./packager";
  9. import { PlatformPackager } from "./platformPackager";
  10. import { VmManager } from "./vm/vm";
  11. export 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. }