[game] added dota maps
This commit is contained in:
@@ -11,6 +11,7 @@ const PluginError = require('plugin-error');
|
||||
const colors = require('ansi-colors');
|
||||
const log = require('fancy-log');
|
||||
const vfs = require('vinyl-fs');
|
||||
const rmdir = require('rmdir');
|
||||
|
||||
|
||||
class Haxe extends Sdk {
|
||||
@@ -179,13 +180,10 @@ class Haxe extends Sdk {
|
||||
args.push('-debug');
|
||||
}
|
||||
//console.log('haxelib', args.join(' '));
|
||||
const target = `${buildDir}/${params.platform}/bin`;
|
||||
rmdir(target);
|
||||
this.haxelib(args).then(() => {
|
||||
const result = {
|
||||
'flash': `${buildDir}/flash/bin/*.swf`,
|
||||
'html5': `${buildDir}/html5/bin/**/*`,
|
||||
'linux': `${buildDir}/linux/bin/**/*`,
|
||||
}[params.platform];
|
||||
vfs.src(result).pipe(through.obj((file, enc, cb) => {
|
||||
vfs.src(`${target}/**/*`).pipe(through.obj((file, enc, cb) => {
|
||||
file.debug = debug;
|
||||
stream.push(file);
|
||||
cb();
|
||||
|
||||
Reference in New Issue
Block a user