[haxe] change build dir from tmp to current
This commit is contained in:
@@ -81,10 +81,16 @@ class Haxe extends Sdk {
|
||||
return exec('.', [this.haxelibBin].concat(args).join(' '));
|
||||
}
|
||||
|
||||
resolveBuildDir(config) {
|
||||
//const baseDir = os.tmpdir();
|
||||
const baseDir = process.cwd();
|
||||
return path.join(baseDir, 'build', config.name);
|
||||
}
|
||||
|
||||
openfl(command, platform, config, debug=false) {
|
||||
this.log.i('_openfl_ _build_ *%s*', platform);
|
||||
this.activate();
|
||||
const buildDir = path.join(os.tmpdir(), 'build', config.name);
|
||||
const buildDir = this.resolveBuildDir(config);
|
||||
fse.ensureDirSync(buildDir);
|
||||
|
||||
const projectTemplate = template(fs.readFileSync(path.resolve(__dirname, '..', 'template/project.xml')));
|
||||
@@ -116,7 +122,7 @@ class Haxe extends Sdk {
|
||||
build(platform, config, debug=false) {
|
||||
this.log.i('_build_ *%s*', platform);
|
||||
this.activate();
|
||||
const buildDir = path.join(os.tmpdir(), 'build', config.name);
|
||||
const buildDir = this.resolveBuildDir(config);
|
||||
fse.ensureDirSync(buildDir);
|
||||
|
||||
const projectTemplate = template(fs.readFileSync(path.resolve(__dirname, '..', 'template/project.hxml')));
|
||||
|
||||
Reference in New Issue
Block a user