We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78eebe8 commit e60b028Copy full SHA for e60b028
script/adb.mjs
@@ -19,8 +19,14 @@ await $`curl -Lk ${downloadUrl} > ${platformToolsPath}`
19
await $`unzip -o ${platformToolsPath} -d ${adbDir}`
20
await fs.remove(platformToolsPath)
21
22
-const file = isWindows ? 'adb.exe' : 'adb'
23
-await fs.copy(resolve(platformToolsDir, file), resolve(adbDir, file))
+let files = ['adb']
+if (isWindows) {
24
+ files = ['adb.exe', 'AdbWinApi.dll', 'AdbWinUsbApi.dll']
25
+}
26
+for (let i = 0, len = files.length; i < len; i++) {
27
+ const file = files[i]
28
+ await fs.copy(resolve(platformToolsDir, file), resolve(adbDir, file))
29
30
31
await fs.remove(platformToolsDir)
32
0 commit comments