MsiTarget.d.ts 1.3 KB

123456789101112131415161718192021222324252627
  1. import { Arch } from "builder-util";
  2. import { Lazy } from "lazy-val";
  3. import { MsiOptions } from "../";
  4. import { Target } from "../core";
  5. import { FinalCommonWindowsInstallerOptions } from "../options/CommonWindowsInstallerConfiguration";
  6. import { VmManager } from "../vm/vm";
  7. import { WinPackager } from "../winPackager";
  8. export default class MsiTarget extends Target {
  9. protected readonly packager: WinPackager;
  10. readonly outDir: string;
  11. protected readonly vm: VmManager;
  12. readonly options: MsiOptions;
  13. constructor(packager: WinPackager, outDir: string, name?: string, isAsyncSupported?: boolean);
  14. protected projectTemplate: Lazy<(data: any) => string>;
  15. /**
  16. * A product-specific string that can be used in an [MSI Identifier](https://docs.microsoft.com/en-us/windows/win32/msi/identifier).
  17. */
  18. private get productMsiIdPrefix();
  19. protected get iconId(): string;
  20. protected get upgradeCode(): string;
  21. build(appOutDir: string, arch: Arch): Promise<void>;
  22. private light;
  23. private getCommonWixArgs;
  24. protected writeManifest(appOutDir: string, arch: Arch, commonOptions: FinalCommonWindowsInstallerOptions): Promise<string>;
  25. protected getBaseOptions(commonOptions: FinalCommonWindowsInstallerOptions): Promise<any>;
  26. private computeFileDeclaration;
  27. }