@mcesystems/adb-kit 1.0.25 → 1.0.26

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.mjs CHANGED
@@ -30880,10 +30880,6 @@ function getAdbBinaryPath() {
30880
30880
  if (existsSync(distPath)) {
30881
30881
  return distPath;
30882
30882
  }
30883
- const devPath = path.join(packageRoot, "resources", "bin", platformDir, binaryName);
30884
- if (existsSync(devPath)) {
30885
- return devPath;
30886
- }
30887
30883
  return null;
30888
30884
  }
30889
30885
 
@@ -30938,7 +30934,9 @@ var AdbDeviceKit = class {
30938
30934
  constructor(deviceId, port) {
30939
30935
  this.port = port;
30940
30936
  ensureAdbPathFromResources();
30941
- this.client = adbkit.default.createClient();
30937
+ this.client = adbkit.default.createClient({
30938
+ bin: process.env.ADB_PATH ?? getAdbBinaryPath() ?? "."
30939
+ });
30942
30940
  this.deviceId = deviceId.split("\\").pop() ?? deviceId;
30943
30941
  logInfo(`Device ID: ${this.deviceId}`);
30944
30942
  this.device = this.client.getDevice(this.deviceId);