aiot-toolkit 2.0.6-beta.2 → 2.0.6-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,11 +96,6 @@ class VelaUxStarter extends _IStarter.default {
96
96
  })
97
97
  });
98
98
  }
99
- // 检查选择的模拟器是否符合要求
100
- if (vvdName && !this.isAvailableEmulator(vvdName)) {
101
- _sharedUtils.ColorConsole.throw(`this emulator is unavailable, please create a new emulator.`);
102
- return;
103
- }
104
99
 
105
100
  // build
106
101
  const compilerOption = this.builder.getCompilerOption(projectPath, options);
@@ -157,14 +152,17 @@ class VelaUxStarter extends _IStarter.default {
157
152
  */
158
153
  isAvailableEmulator(avdName) {
159
154
  const {
160
- imageDir
155
+ imageDir,
156
+ customImagePath
161
157
  } = _VelaAvdUtils.default.vvdManager.getVvdInfo(avdName);
162
- // 没有avdImagePath,即对应的configIni里没有 image.sysdir.1 字段
163
- // 有avdImagePath,但是这个目录下没有nuttx
164
- if (!imageDir || !_fsExtra.default.existsSync(_path.default.resolve(imageDir, 'nuttx'))) {
165
- return false;
158
+ const images = [imageDir, customImagePath];
159
+ let res = false;
160
+ for (const image of images) {
161
+ if (image && _fsExtra.default.existsSync(_path.default.resolve(image, 'nuttx'))) {
162
+ res = true;
163
+ }
166
164
  }
167
- return true;
165
+ return res;
168
166
  }
169
167
  }
170
168
  var _default = exports.default = VelaUxStarter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiot-toolkit",
3
- "version": "2.0.6-beta.2",
3
+ "version": "2.0.6-beta.21",
4
4
  "description": "Tools for creating, developing, and packaging aiot applications.",
5
5
  "keywords": [
6
6
  "aiot"
@@ -22,14 +22,14 @@
22
22
  "test": "node ./__tests__/aiot-toolkit.test.js"
23
23
  },
24
24
  "dependencies": {
25
- "@aiot-toolkit/aiotpack": "2.0.6-beta.2",
26
- "@aiot-toolkit/commander": "2.0.6-beta.2",
27
- "@aiot-toolkit/emulator": "2.0.6-beta.2",
28
- "@aiot-toolkit/shared-utils": "2.0.6-beta.2",
25
+ "@aiot-toolkit/aiotpack": "2.0.6-beta.21",
26
+ "@aiot-toolkit/commander": "2.0.6-beta.21",
27
+ "@aiot-toolkit/emulator": "2.0.6-beta.21",
28
+ "@aiot-toolkit/shared-utils": "2.0.6-beta.21",
29
29
  "@inquirer/prompts": "^5.3.0",
30
30
  "@miwt/adb": "^0.9.0",
31
31
  "axios": "^1.7.4",
32
- "file-lane": "2.0.6-beta.2",
32
+ "file-lane": "2.0.6-beta.21",
33
33
  "fs-extra": "^11.2.0",
34
34
  "koa-router": "^13.0.1",
35
35
  "lodash": "^4.17.21",
@@ -43,5 +43,5 @@
43
43
  "@types/qr-image": "^3.2.9",
44
44
  "@types/semver": "^7.5.8"
45
45
  },
46
- "gitHead": "d0057f9e62ac191d21445787667217cfa4aff1e9"
46
+ "gitHead": "9294502171d727985c7a28a4a6f0c4a291623309"
47
47
  }