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.
- package/lib/starter/VelaUxStarter.js +9 -11
- package/package.json +7 -7
|
@@ -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
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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
|
|
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.
|
|
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.
|
|
26
|
-
"@aiot-toolkit/commander": "2.0.6-beta.
|
|
27
|
-
"@aiot-toolkit/emulator": "2.0.6-beta.
|
|
28
|
-
"@aiot-toolkit/shared-utils": "2.0.6-beta.
|
|
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.
|
|
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": "
|
|
46
|
+
"gitHead": "9294502171d727985c7a28a4a6f0c4a291623309"
|
|
47
47
|
}
|