@arkts/image-manager 0.5.11 → 0.5.12-beta.0

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
@@ -32,7 +32,7 @@ let base64_js = require("base64-js");
32
32
  let vscode_fs = require("vscode-fs");
33
33
 
34
34
  //#region package.json
35
- var version = "0.5.11";
35
+ var version = "0.5.12-beta.0";
36
36
 
37
37
  //#endregion
38
38
  //#region src/common/serializable-content.ts
@@ -975,7 +975,7 @@ var LocalImageImpl = class extends BaseImageImpl {
975
975
  "os.apiVersion": this.getApiVersion().toString(),
976
976
  "os.softwareVersion": this.getSdkPkgFile().data?.version ?? "",
977
977
  "os.isPublic": options.isPublic ?? true ? "true" : "false",
978
- "hw.cpu.arch": listFileItem.getContent()?.abi,
978
+ "hw.cpu.arch": this.getImageManager().getArch().toLowerCase(),
979
979
  "hw.cpu.ncore": listFileItem.getContent()?.cpuNumber,
980
980
  "hw.lcd.density": emulatorDeviceItem.getContent()?.density?.toFixed(),
981
981
  "hw.lcd.single.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleDiagonalSize?.toString() : void 0,
@@ -989,10 +989,10 @@ var LocalImageImpl = class extends BaseImageImpl {
989
989
  "hw.lcd.triple.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent().resolutionWidth.toString() : void 0,
990
990
  "hw.lcd.phy.height": emulatorDeviceItem.getContent()?.physicalHeight?.toString(),
991
991
  "hw.lcd.phy.width": emulatorDeviceItem.getContent()?.physicalWidth?.toString(),
992
- "hw.lcd.number": EmulatorTripleFoldItem.is(emulatorDeviceItem) || EmulatorFoldItem.is(emulatorDeviceItem) ? "2" : "1",
992
+ "hw.lcd.number": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? "3" : EmulatorFoldItem.is(emulatorDeviceItem) ? "2" : "1",
993
993
  "hw.ramSize": listFileItem.getContent()?.memoryRamSize,
994
994
  "hw.dataPartitionSize": listFileItem.getContent()?.dataDiskSize,
995
- "isCustomize": "true",
995
+ "isCustomize": screen.getCustomizeScreenConfig() ? "true" : "false",
996
996
  "hw.hdc.port": "notset"
997
997
  });
998
998
  device.setConfigIniFile(deviceIniFile);
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { fromByteArray } from "base64-js";
3
3
  import { RelativePattern, WriteableFlags, createNodeFileSystem } from "vscode-fs";
4
4
 
5
5
  //#region package.json
6
- var version = "0.5.11";
6
+ var version = "0.5.12-beta.0";
7
7
 
8
8
  //#endregion
9
9
  //#region src/common/serializable-content.ts
@@ -946,7 +946,7 @@ var LocalImageImpl = class extends BaseImageImpl {
946
946
  "os.apiVersion": this.getApiVersion().toString(),
947
947
  "os.softwareVersion": this.getSdkPkgFile().data?.version ?? "",
948
948
  "os.isPublic": options.isPublic ?? true ? "true" : "false",
949
- "hw.cpu.arch": listFileItem.getContent()?.abi,
949
+ "hw.cpu.arch": this.getImageManager().getArch().toLowerCase(),
950
950
  "hw.cpu.ncore": listFileItem.getContent()?.cpuNumber,
951
951
  "hw.lcd.density": emulatorDeviceItem.getContent()?.density?.toFixed(),
952
952
  "hw.lcd.single.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleDiagonalSize?.toString() : void 0,
@@ -960,10 +960,10 @@ var LocalImageImpl = class extends BaseImageImpl {
960
960
  "hw.lcd.triple.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent().resolutionWidth.toString() : void 0,
961
961
  "hw.lcd.phy.height": emulatorDeviceItem.getContent()?.physicalHeight?.toString(),
962
962
  "hw.lcd.phy.width": emulatorDeviceItem.getContent()?.physicalWidth?.toString(),
963
- "hw.lcd.number": EmulatorTripleFoldItem.is(emulatorDeviceItem) || EmulatorFoldItem.is(emulatorDeviceItem) ? "2" : "1",
963
+ "hw.lcd.number": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? "3" : EmulatorFoldItem.is(emulatorDeviceItem) ? "2" : "1",
964
964
  "hw.ramSize": listFileItem.getContent()?.memoryRamSize,
965
965
  "hw.dataPartitionSize": listFileItem.getContent()?.dataDiskSize,
966
- "isCustomize": "true",
966
+ "isCustomize": screen.getCustomizeScreenConfig() ? "true" : "false",
967
967
  "hw.hdc.port": "notset"
968
968
  });
969
969
  device.setConfigIniFile(deviceIniFile);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arkts/image-manager",
3
3
  "type": "module",
4
- "version": "0.5.11",
4
+ "version": "0.5.12-beta.0",
5
5
  "description": "OpenHarmony/HarmonyOS qemu image manager.",
6
6
  "author": "Naily Zero <zero@naily.cc> (https://naily.cc)",
7
7
  "license": "MIT",