@arkts/image-manager 0.1.2 → 0.1.4
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/dist/index.cjs +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -141,7 +141,6 @@ var ImageDeployerImpl = class {
|
|
|
141
141
|
if (defaultProductConfigItem.devModel) return defaultProductConfigItem.devModel;
|
|
142
142
|
}
|
|
143
143
|
async buildList() {
|
|
144
|
-
if (!(await this.image.getProductConfig()).find((item) => item.name === this.config.productName)) throw new Error(`Product config item ${this.config.productName} not found`);
|
|
145
144
|
return {
|
|
146
145
|
...this.options,
|
|
147
146
|
"imageDir": this.image.getPath().split(",").join(this.image.getImageManager().getOptions().path.sep) + this.image.getImageManager().getOptions().path.sep,
|
|
@@ -628,8 +627,8 @@ async function resolveImageManagerOptions(options) {
|
|
|
628
627
|
}
|
|
629
628
|
function resolveDefaultEmulatorPath() {
|
|
630
629
|
switch (process.platform) {
|
|
631
|
-
case "darwin": return "/Applications/DevEco-Studio.app/Contents/tools/emulator
|
|
632
|
-
case "win32": return "C:\\Program Files\\Huawei\\DevEco Studio\\tools\\emulator
|
|
630
|
+
case "darwin": return "/Applications/DevEco-Studio.app/Contents/tools/emulator";
|
|
631
|
+
case "win32": return "C:\\Program Files\\Huawei\\DevEco Studio\\tools\\emulator";
|
|
633
632
|
default: return path.resolve(os.homedir(), ".huawei", "Emulator");
|
|
634
633
|
}
|
|
635
634
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -109,7 +109,6 @@ var ImageDeployerImpl = class {
|
|
|
109
109
|
if (defaultProductConfigItem.devModel) return defaultProductConfigItem.devModel;
|
|
110
110
|
}
|
|
111
111
|
async buildList() {
|
|
112
|
-
if (!(await this.image.getProductConfig()).find((item) => item.name === this.config.productName)) throw new Error(`Product config item ${this.config.productName} not found`);
|
|
113
112
|
return {
|
|
114
113
|
...this.options,
|
|
115
114
|
"imageDir": this.image.getPath().split(",").join(this.image.getImageManager().getOptions().path.sep) + this.image.getImageManager().getOptions().path.sep,
|
|
@@ -596,8 +595,8 @@ async function resolveImageManagerOptions(options) {
|
|
|
596
595
|
}
|
|
597
596
|
function resolveDefaultEmulatorPath() {
|
|
598
597
|
switch (process.platform) {
|
|
599
|
-
case "darwin": return "/Applications/DevEco-Studio.app/Contents/tools/emulator
|
|
600
|
-
case "win32": return "C:\\Program Files\\Huawei\\DevEco Studio\\tools\\emulator
|
|
598
|
+
case "darwin": return "/Applications/DevEco-Studio.app/Contents/tools/emulator";
|
|
599
|
+
case "win32": return "C:\\Program Files\\Huawei\\DevEco Studio\\tools\\emulator";
|
|
601
600
|
default: return path.resolve(os.homedir(), ".huawei", "Emulator");
|
|
602
601
|
}
|
|
603
602
|
}
|
package/package.json
CHANGED