mirror of
https://gitee.com/myxzgzs/boyue_jnpf.git
synced 2025-08-13 17:52:41 +08:00
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
import { Arch } from "builder-util";
|
|
import { PackageFileInfo } from "builder-util-runtime";
|
|
import { NsisOptions } from "./nsisOptions";
|
|
import { NsisTarget } from "./NsisTarget";
|
|
export declare const nsisTemplatesDir: string;
|
|
export declare const NsisTargetOptions: {
|
|
then: (callback: (options: NsisOptions) => any) => Promise<string>;
|
|
resolve: (options: NsisOptions) => any;
|
|
};
|
|
export declare const NSIS_PATH: () => Promise<string>;
|
|
export interface PackArchResult {
|
|
fileInfo: PackageFileInfo;
|
|
unpackedSize: number;
|
|
}
|
|
export declare class AppPackageHelper {
|
|
private readonly elevateHelper;
|
|
private readonly archToResult;
|
|
private readonly infoToIsDelete;
|
|
/** @private */
|
|
refCount: number;
|
|
constructor(elevateHelper: CopyElevateHelper);
|
|
packArch(arch: Arch, target: NsisTarget): Promise<PackArchResult>;
|
|
finishBuild(): Promise<any>;
|
|
}
|
|
export declare class CopyElevateHelper {
|
|
private readonly copied;
|
|
copy(appOutDir: string, target: NsisTarget): Promise<any>;
|
|
}
|
|
export declare class UninstallerReader {
|
|
static exec(installerPath: string, uninstallerPath: string): Promise<void>;
|
|
}
|