@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/README.md +191 -42
- package/dist/index.js +3 -5
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +3 -5
- package/dist/index.mjs.map +2 -2
- package/dist/resources/bin/darwin/adb +0 -0
- package/dist/types/logic/adbDeviceKit.d.ts.map +1 -1
- package/dist/types/utils/adbPath.d.ts.map +1 -1
- package/package.json +7 -4
- package/scripts/README.md +183 -0
- package/scripts/export-resources.ts +368 -0
- package/dist/resources/bin/windows/AdbWinApi.dll +0 -0
- package/dist/resources/bin/windows/AdbWinUsbApi.dll +0 -0
- package/dist/resources/bin/windows/adb.exe +0 -0
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);
|