fix: 修复 Windows 上 OpenClaw CLI 检测逻辑#107
Closed
ATGCS wants to merge 1 commit intoqingchencloud:mainfrom
Closed
Conversation
- 增加多个可能的安装路径检测 - 解决用户安装 OpenClaw 后仍被提示需要安装的问题
Contributor
|
感谢提交!已手动将核心改动(Windows CLI 多路径检测)合并到 v0.9.6 中,同时增加了 findOpenclawBin() fallback。关闭此 PR。 |
Contributor
|
核心改动已合并到 v0.9.6,感谢贡献! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

增加多个可能的安装路径检测
解决用户安装 OpenClaw 后仍被提示需要安装的问题
变更描述
修复 Windows 系统上 OpenClaw CLI 检测逻辑不完善的问题。
当前检测只检查
%APPDATA%\npm\openclaw.cmd一个路径,但用户的 OpenClaw 可能安装在不同位置(如C:\WINDOWS\system32\openclaw或其他 npm 全局安装路径),导致已安装 OpenClaw 的用户仍被提示需要安装。本次修改增加了多个可能的安装路径检测:
%APPDATA%\npm\openclaw.cmd%APPDATA%\npm\openclaw%ProgramFiles%\nodejs\openclaw.cmd%ProgramFiles%\nodejs\openclawC:\WINDOWS\system32\openclaw变更类型
测试清单
npm run build前端构建通过cargo checkRust 编译通过相关 Issue
无
截图
不涉及 UI 变更,无需截图。