nsisUtil.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. import { Arch } from "builder-util";
  2. import { PackageFileInfo } from "builder-util-runtime";
  3. import { NsisTarget } from "./NsisTarget";
  4. import { NsisOptions } from "./nsisOptions";
  5. export declare const nsisTemplatesDir: string;
  6. export declare const NsisTargetOptions: {
  7. then: (callback: (options: NsisOptions) => any) => Promise<string>;
  8. resolve: (options: NsisOptions) => any;
  9. };
  10. export declare const NSIS_PATH: () => Promise<string>;
  11. export interface PackArchResult {
  12. fileInfo: PackageFileInfo;
  13. unpackedSize: number;
  14. }
  15. export declare class AppPackageHelper {
  16. private readonly elevateHelper;
  17. private readonly archToResult;
  18. private readonly infoToIsDelete;
  19. /** @private */
  20. refCount: number;
  21. constructor(elevateHelper: CopyElevateHelper);
  22. packArch(arch: Arch, target: NsisTarget): Promise<PackArchResult>;
  23. finishBuild(): Promise<any>;
  24. }
  25. export declare class CopyElevateHelper {
  26. private readonly copied;
  27. copy(appOutDir: string, target: NsisTarget): Promise<any>;
  28. }
  29. export declare class UninstallerReader {
  30. static exec(installerPath: string, uninstallerPath: string): Promise<void>;
  31. }