Files
gulp-haxetool/src/project/impl/packer/windows/installer.ts
T
shmyga bbb1d062f1
test / test (push) Successful in 2m9s
feat: add task module
2026-11-10 15:29:25 +03:00

25 lines
653 B
TypeScript

import { type Config, Platform } from "../../../../core/type";
import { InnoSetup } from "../../../../impl/innosetup";
import { Packer } from "../../../core/packer";
export class WindowsInstallerPacker extends Packer {
static NAME = "installer";
public innosetup: InnoSetup;
constructor(config: Config) {
super(config, Platform.WINDOWS);
this.innosetup = new InnoSetup();
}
setup() {
return this.innosetup.prepare();
}
call() {
return this.innosetup.pack(this.config, this.targetPath, this.resolveTargetPath("installer"));
}
}
Packer.register(Platform.WINDOWS, WindowsInstallerPacker.NAME, WindowsInstallerPacker);