feat: add Windows support | Windows 支持#26
Open
wojiadexiaoming-copy wants to merge 2 commits intoqiuzhi2046:mainfrom
Open
feat: add Windows support | Windows 支持#26wojiadexiaoming-copy wants to merge 2 commits intoqiuzhi2046:mainfrom
wojiadexiaoming-copy wants to merge 2 commits intoqiuzhi2046:mainfrom
Conversation
Owner
|
感谢PR,windows目前bug比较多,会仔细review的👍 |
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.
改动内容
electron/main/index.ts:titleBarStyle 适配 Windows,托盘图标 setTemplateImage 限制为 macOSvite.config.ts:syncDevElectronBundleIcon 加 macOS 平台守卫,避免 Windows 构建崩溃electron-builder.json:macOS 签名配置移至运行时注入,Windows 打包不再强制代码签名;新增 NSIS 安装脚本自动注册 Gateway 服务electron/main/cli.ts:.cmd文件在 Windows 上自动启用shell: truerefreshEnvironment合并注册表 PATH 与候选路径waitForCommandAvailableWindows 下用 shell 模式探测命令electron/main/openclaw-gateway-service.ts:识别schtasks run failed为服务未安装,自动提权重试gateway installelectron/main/openclaw-model-config.ts:Windows 下验证 API Key 时不使用隔离空目录electron/main/node-runtime.ts:新增buildWindowsNpmCommandsrc/shared/openclaw-version-policy.ts:版本号解析兼容2026.x.x日期格式,放宽版本上限build/installer.nsh:NSIS 安装后自动执行openclaw gateway installpackage.json:新增package:win、release:win脚本测试环境
Windows 10 x64,Node.js v22.18.0,OpenClaw 2026.3.24