dsh-android v0.1.0-rc.3
Pre-release
Pre-release
dsh-android v0.1.0-rc.3
社区首反馈修复版:两个 Windows 用户报的真实问题,都来自 @sc-yx 的高质量报告(含根因与验证)。/ The first community-feedback release: two real Windows reports, both from @sc-yx's high-quality issues with root cause and validation included.
🐛 修复 / Fixed
- Windows 下
adb.exe被误判为不可执行(#1)/ A Windows adb.exe was misjudged as non-executable (#1) — adb 发现逻辑对每个候选都要求 Unix 执行位mode & 0o111,而 Windows 文件系统根本没有这个位:真实存在、可直接运行的adb.exe(雷电模拟器安装)在 ADB env / PATH / SDK 三条发现路径上全部被拒。win32 上"是普通文件"即为可执行判定,实际启动失败交给execFile。回归测试通过 stubprocess.platform证明 mode-0644 的adb.exe能在 win32 解析、且 Unix 执行位检查在其他平台不受影响。/ Discovery demanded the Unix execute bit on every candidate — a bit no Windows filesystem sets — so a real, runnable adb.exe (an LDPlayer install) was refused across all three discovery tiers. On win32 a regular file IS the check; execFile owns launch failures. The regression stubs process.platform to prove both directions. - 与第三方右侧栏共存而不是退化成模态浮层(#2)/ Coexist with a foreign right sidebar instead of going modal (#2) —
dsh-better-sidebar等插件先占了#root的右 margin 时,设备面板的停靠租约直接失败、退回"点外面就关"的全屏模态——人机协同没法用。现在外来 margin 被当作固定的右缘偏移:margin 按对方 + 我们叠加预留,面板停靠在right: 对方宽度,正好排在对方侧栏左边;释放时恢复对方的原值。对方侧栏占掉超过 60% 视口时仍回退浮层;我们自己属性的二次认领依旧 fail-closed。已知边界:偏移是认领时的快照,对方侧栏事后改宽需要关开一次面板重测。/ A pre-existing root margin failed the dock lease outright, dropping the panel to a click-outside-to-close modal. The lease now treats the foreign margin as a fixed right-edge offset — reserving offset + width and docking the surface immediately left of the other sidebar, restoring the foreign value on release. A sidebar hogging >60% of the viewport still gets the overlay; the offset is a claim-time snapshot.
📦 安装 / Install
dsh plugin --profile web add @zseven-w/dsh-android@next
dsh web⚠️ 说明 / Notes
- npm dist-tag:
next。/ Published undernext. - 七套 smoke 全绿(新增 win32 平台回归与外来侧栏共存断言)。/ All seven smoke suites green, with the new win32 and foreign-sidebar regressions.
Full Changelog: v0.1.0-rc.2...v0.1.0-rc.3