[innosetup] add innosetup installer packer
This commit is contained in:
@@ -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);
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user