aiot-toolkit 2.0.3-beta.8 → 2.0.3-beta.9

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.
@@ -92,12 +92,14 @@ class VelaVvdUtils {
92
92
  const vvdManager = new _emulator.VvdManager({
93
93
  sdkHome: VelaVvdUtils.sdkHome
94
94
  });
95
- const downloder = await vvdManager.downloadSDK({
96
- force: false,
97
- cliProgress: true,
98
- parallelDownloads: 6
99
- });
100
- await downloder.downlodPromise;
95
+ if ((await vvdManager.hasSDKChildrenUpdate()).length > 0) {
96
+ const downloder = await vvdManager.downloadSDK({
97
+ force: false,
98
+ cliProgress: true,
99
+ parallelDownloads: 6
100
+ });
101
+ await downloder.downlodPromise;
102
+ }
101
103
  const imageDir = _path.default.resolve(VelaVvdUtils.sdkHome, _emulator.SDKChildren.SYSTEM_IMAGES, velaImage);
102
104
 
103
105
  // 创建vvd文本文件
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiot-toolkit",
3
- "version": "2.0.3-beta.8",
3
+ "version": "2.0.3-beta.9",
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.3-beta.8",
26
- "@aiot-toolkit/commander": "2.0.3-beta.8",
27
- "@aiot-toolkit/emulator": "2.0.3-beta.8",
28
- "@aiot-toolkit/shared-utils": "2.0.3-beta.8",
25
+ "@aiot-toolkit/aiotpack": "2.0.3-beta.9",
26
+ "@aiot-toolkit/commander": "2.0.3-beta.9",
27
+ "@aiot-toolkit/emulator": "2.0.3-beta.9",
28
+ "@aiot-toolkit/shared-utils": "2.0.3-beta.9",
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.3-beta.8",
32
+ "file-lane": "2.0.3-beta.9",
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": "1b1be0a8f4e40978a221fd7dbab4c9a2c168be1e"
46
+ "gitHead": "d51c01beb50c17548d9ab5be522790d295b4c18d"
47
47
  }