[sdk] add neko activate; update haxe activate

This commit is contained in:
2019-06-20 14:26:36 +03:00
parent 6cd51b58c7
commit e904b46f4a
5 changed files with 86 additions and 11 deletions

View File

@@ -61,6 +61,12 @@ class Neko extends Sdk {
Env.addPath(this.path, 'LD_LIBRARY_PATH');
}
prepare() {
return Promise.all([super.prepare()]).then(() => {
fs.copyFileSync(path.resolve(__dirname, '..', 'template/neko/activate'), path.resolve(this.path, 'activate'));
});
}
get nekoBin() {
let binname = 'neko';
if (os.type() === 'Windows_NT') binname += '.exe';
@@ -79,4 +85,4 @@ Neko.ID = 'neko';
Neko.VERSION_2_2_0 = '2.2.0';
Neko.VERSION = Neko.VERSION_2_2_0;
module.exports = Neko;
module.exports = Neko;