[sdk] add neko activate; update haxe activate
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user