[build] linux platform
This commit is contained in:
@@ -79,7 +79,6 @@ class Haxe extends Sdk {
|
||||
if (!Array.isArray(packages)) {
|
||||
packages = Object.entries(packages).map(([k, v]) => ({name: k, version: v}));
|
||||
}
|
||||
console.log('packages', packages);
|
||||
|
||||
for (let pack of packages) {
|
||||
const args = [];
|
||||
@@ -88,7 +87,6 @@ class Haxe extends Sdk {
|
||||
args.push('install', pack);
|
||||
} else if (typeof pack === 'object') {
|
||||
version = pack.version;
|
||||
console.log('z', version.substr(0, 3));
|
||||
if (version.substr(0, 3) === 'git') {
|
||||
pack.git = version;
|
||||
version = null;
|
||||
@@ -108,7 +106,6 @@ class Haxe extends Sdk {
|
||||
} else if (pack.git) {
|
||||
path += '/git';
|
||||
}
|
||||
console.log('p', path);
|
||||
if (!fs.existsSync(path)) {
|
||||
promise = promise.then(next(args));
|
||||
}
|
||||
@@ -186,6 +183,7 @@ class Haxe extends Sdk {
|
||||
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) => {
|
||||
file.debug = debug;
|
||||
|
||||
Reference in New Issue
Block a user