Commit c797aa20 authored by wudizhanche1000's avatar wudizhanche1000

Fix: 运行app时,不使用未安装的依赖

parent 2b37a193
...@@ -127,8 +127,10 @@ export class AppsService { ...@@ -127,8 +127,10 @@ export class AppsService {
let args: string[] = []; let args: string[] = [];
let env = {}; let env = {};
for (let child of children) { for (let child of children) {
if(child.isInstalled()) {
action = child.actions.get('main'); action = child.actions.get('main');
} }
}
let execute = path.join(cwd, action.execute); let execute = path.join(cwd, action.execute);
if (action.open) { if (action.open) {
let openAction = action.open.actions.get('main'); let openAction = action.open.actions.get('main');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment