feat(project): add preset
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user