dsh-android-tool 0.1.0 → 0.1.2
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 +2 -2
- package/cordis.patch.yml +1 -1
- package/lib/config-schema.js +1 -1
- package/lib/config.js +2 -2
- package/package.json +3 -4
- /package/{scrcpy-win64-v5.0.1 → scrcpy}/AdbWinApi.dll +0 -0
- /package/{scrcpy-win64-v5.0.1 → scrcpy}/AdbWinUsbApi.dll +0 -0
- /package/{scrcpy-win64-v5.0.1 → scrcpy}/LICENSE.txt +0 -0
- /package/{scrcpy-win64-v5.0.1 → scrcpy}/adb.exe +0 -0
- /package/{scrcpy-win64-v5.0.1 → scrcpy}/scrcpy-server +0 -0
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- **右侧 Sidebar → 安卓设备**:顶部四个 Tab —— 界面 / Logcat / 性能 / 指令。
|
|
7
7
|
- **给 AI 的四个工具**:`android_view`、`android_state`、`android_control`、`android_adb`。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
插件随包一份 `scrcpy/` 目录的精简版:只保留 `adb.exe`、`AdbWinApi.dll`、`AdbWinUsbApi.dll`、`scrcpy-server`(约 9MB),不依赖本机另外安装 adb;独立 scrcpy 窗口需要你在设置里另外指定本机 `scrcpy.exe`。
|
|
10
10
|
|
|
11
11
|
## 安装
|
|
12
12
|
|
|
@@ -105,7 +105,7 @@ fetch-retry-maxtimeout=120000
|
|
|
105
105
|
|
|
106
106
|
| key | 默认 | 说明 |
|
|
107
107
|
|---|---|---|
|
|
108
|
-
| `adbPath` | 随包 | 留空 = `scrcpy
|
|
108
|
+
| `adbPath` | 随包 | 留空 = `scrcpy/adb.exe` |
|
|
109
109
|
| `scrcpyPath` | 空 | 精简包不含;需要独立 scrcpy 窗口时填本机 `scrcpy.exe` 路径 |
|
|
110
110
|
| `wirelessHost` | 空 | 无线调试设备 IP |
|
|
111
111
|
| `wirelessPort` | 5555 | adb connect 端口 |
|
package/cordis.patch.yml
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# 不在这里声明。
|
|
6
6
|
#
|
|
7
7
|
# 配置项一律给默认值:
|
|
8
|
-
# - adbPath / scrcpyPath 留空 = 自动使用本插件目录下 scrcpy
|
|
8
|
+
# - adbPath / scrcpyPath 留空 = 自动使用本插件目录下 scrcpy 里的
|
|
9
9
|
# adb.exe / scrcpy.exe;
|
|
10
10
|
# - wirelessHost 留空 = 还没配置无线调试,插件正常运行,只是连不上设备;
|
|
11
11
|
# 用户在「设置 → 安卓调试」里改,写入后立即生效(全部字段都是 volatile)。
|
package/lib/config-schema.js
CHANGED
package/lib/config.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/** scrcpy 随包目录名。 */
|
|
9
|
-
export const SCRCPY_DIR = 'scrcpy
|
|
9
|
+
export const SCRCPY_DIR = 'scrcpy'
|
|
10
10
|
|
|
11
11
|
/** 合理默认值。字段缺失、类型不对时都回落到这里。 */
|
|
12
12
|
export const DEFAULTS = {
|
|
@@ -80,7 +80,7 @@ export function snapshotConfig(config) {
|
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* 解析 adb / scrcpy / scrcpy-server 三个随包路径。
|
|
83
|
-
* 显式路径优先;否则用 <pluginRoot>/scrcpy
|
|
83
|
+
* 显式路径优先;否则用 <pluginRoot>/scrcpy 下的可执行文件。
|
|
84
84
|
*
|
|
85
85
|
* @param {object} options
|
|
86
86
|
* @param {string} options.pluginRoot
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-android-tool",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "把 Android 设备接进 DSH:设置页配置无线调试与 adb,右侧四 Tab 看画面 / Logcat / 性能 / 指令,并给 AI android_view / android_state / android_control / android_adb 四个工具",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"icon.svg",
|
|
20
20
|
"README.md",
|
|
21
21
|
"LICENSE",
|
|
22
|
-
"scrcpy
|
|
22
|
+
"scrcpy"
|
|
23
23
|
],
|
|
24
24
|
"keywords": [
|
|
25
25
|
"dsh",
|
|
@@ -49,8 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
|
-
"node": ">=20"
|
|
53
|
-
"dsh": ">=0.2.0"
|
|
52
|
+
"node": ">=20"
|
|
54
53
|
},
|
|
55
54
|
"scripts": {
|
|
56
55
|
"test": "node --test \"test/*.test.js\""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|