@arkts/image-manager 0.1.3 → 0.1.5

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 CHANGED
@@ -535,7 +535,7 @@ var LocalImageImpl = class extends ImageBase {
535
535
  "-path",
536
536
  `"${this.getImageManager().getOptions().deployedPath.replace(/"/g, "\\\"")}"`,
537
537
  "-imageRoot",
538
- `"${config.path.replace(/"/g, "\\\"")}"`
538
+ `"${this.getImageManager().getOptions().imageBasePath.replace(/"/g, "\\\"")}"`
539
539
  ].join(" ")}`;
540
540
  }
541
541
  async start(deployer) {
@@ -627,8 +627,8 @@ async function resolveImageManagerOptions(options) {
627
627
  }
628
628
  function resolveDefaultEmulatorPath() {
629
629
  switch (process.platform) {
630
- case "darwin": return "/Applications/DevEco-Studio.app/Contents/tools/emulator/Emulator";
631
- case "win32": return "C:\\Program Files\\Huawei\\DevEco Studio\\tools\\emulator\\Emulator.exe";
630
+ case "darwin": return "/Applications/DevEco-Studio.app/Contents/tools/emulator";
631
+ case "win32": return "C:\\Program Files\\Huawei\\DevEco Studio\\tools\\emulator";
632
632
  default: return path.resolve(os.homedir(), ".huawei", "Emulator");
633
633
  }
634
634
  }
package/dist/index.mjs CHANGED
@@ -503,7 +503,7 @@ var LocalImageImpl = class extends ImageBase {
503
503
  "-path",
504
504
  `"${this.getImageManager().getOptions().deployedPath.replace(/"/g, "\\\"")}"`,
505
505
  "-imageRoot",
506
- `"${config.path.replace(/"/g, "\\\"")}"`
506
+ `"${this.getImageManager().getOptions().imageBasePath.replace(/"/g, "\\\"")}"`
507
507
  ].join(" ")}`;
508
508
  }
509
509
  async start(deployer) {
@@ -595,8 +595,8 @@ async function resolveImageManagerOptions(options) {
595
595
  }
596
596
  function resolveDefaultEmulatorPath() {
597
597
  switch (process.platform) {
598
- case "darwin": return "/Applications/DevEco-Studio.app/Contents/tools/emulator/Emulator";
599
- case "win32": return "C:\\Program Files\\Huawei\\DevEco Studio\\tools\\emulator\\Emulator.exe";
598
+ case "darwin": return "/Applications/DevEco-Studio.app/Contents/tools/emulator";
599
+ case "win32": return "C:\\Program Files\\Huawei\\DevEco Studio\\tools\\emulator";
600
600
  default: return path.resolve(os.homedir(), ".huawei", "Emulator");
601
601
  }
602
602
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arkts/image-manager",
3
3
  "type": "module",
4
- "version": "0.1.3",
4
+ "version": "0.1.5",
5
5
  "description": "OpenHarmony/HarmonyOS qemu image manager.",
6
6
  "author": "Naily Zero <zero@naily.cc> (https://naily.cc)",
7
7
  "license": "MIT",