[innosetup] add innosetup installer packer

This commit is contained in:
2019-09-03 16:26:06 +03:00
parent 524695b155
commit 414099bd67
6 changed files with 121 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ const Haxe = require('./haxe');
const FlashPlayer = require('./flashplayer');
const Android = require('./android');
const Neko = require('./neko');
const InnoSetup = require('./innosetup');
const Env = require('./env');
const debug = require('./debug');
const webserver = require('gulp-webserver');
@@ -214,7 +215,7 @@ class LinuxDEBPacker extends Packer {
'fi'
],
_target: '/',
_out: path.join(target, '..', 'debian'),
_out: this.resolveTargetPath('debian'),
_clean: true,
_verbose: false
}));
@@ -248,6 +249,29 @@ LinuxArchivePacker.NAME = 'archive';
Packer.register(Platform.LINUX, LinuxArchivePacker.NAME, LinuxArchivePacker);
/**
*
*/
class WindowsInstallerPacker extends Packer {
constructor(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'));
}
}
WindowsInstallerPacker.NAME = 'installer';
Packer.register(Platform.WINDOWS, WindowsInstallerPacker.NAME, WindowsInstallerPacker);
/**
*
*/