26 lines
692 B
TypeScript
26 lines
692 B
TypeScript
import { Config } from "../../../../core/config";
|
|
import { 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();
|
|
}
|
|
|
|
prepare() {
|
|
return this.innosetup.prepare();
|
|
}
|
|
|
|
call() {
|
|
return this.innosetup.pack(this.config, this.targetPath, this.resolveTargetPath("installer"));
|
|
}
|
|
}
|
|
|
|
Packer.register(Platform.WINDOWS, WindowsInstallerPacker.NAME, WindowsInstallerPacker);
|