update files

This commit is contained in:
nuintun
2015-11-26 17:46:45 +08:00
parent 887e6a74d4
commit df15fe23ad
2 changed files with 9 additions and 4 deletions

View File

@@ -87,10 +87,14 @@ module.exports = {
event.sender.send('emulator', type, project, data);
};
var env = process.env;
var env = {};
Object.keys(process.env).forEach(function (key){
env[key] = process.env[key];
});
project.env.forEach(function (item){
env[item.name] = item.value
env[item.name] = item.value;
});
emulator = new Emulator({