Repository navigation
ci(release): Windows 发布任务改装官方 protoc,安装失败即报错 - #1133
Merged
AlphaCatMeow merged 1 commit intoNov 3, 2026
Merged
Conversation
Closes Stack-Cairn#1132 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
v2.0.2 桌面发布第 1 次运行时,Windows x64 的
choco install protoc因 Chocolatey 源报错没装上,但步骤最后一条命令是Out-File,仍显示成功;12 分钟后构建报Could not find protoc。这次把 Windows 发布任务的这一步改成 CI 里已有的写法:下载官方 protoc 34.0,任何一环失败都让步骤直接失败。Closes #1132
Depends-On: none
Stack-Root: #1133
Cross-Repo: none
改动
.github/workflows/desktop-release.ymlWindows x64 任务的Install protobuf compiler:choco install protoc,再把 Chocolatey 目录写进GITHUB_PATH;安装失败不报错。github.com/protocolbuffers/protobuf/releases下载protoc-34.0-win64.zip,解压后运行protoc --version验证,设置PROTOC并加入PATH。与ci.yml的 Windows 步骤、Linux 发布任务用同一来源和版本。验证
$ErrorActionPreference = 'stop'、. '{0}')抽出来在本机运行:PROTOC_VERSION=34.0libprotoc 34.0,GITHUB_ENV写入PROTOC=...\protoc-34.0\bin\protoc.exeGITHUB_ENV未写入protoc.exe缺失 / protoc 返回非 0(复审补测)yaml解析通过,Windows 任务该步骤env.PROTOC_VERSION为"34.0";与原文件差异仅此一步加两行注释。scripts/release/*.test.mjs(含读取该工作流的verify-kbrain-packaging.test.mjs)29 个:27 pass / 0 fail / 2 skip。crates/agent-gui/src-tauri/build.rs的 prost-build 0.14 先读PROTOC;只编译gateway.proto、gateway_ws.proto,不用 well-known types,不需要额外 include 目录;job 内没有其他步骤依赖 Chocolatey 路径。P3:三处 protoc 下载都没校验 SHA256(与现状一致),升级版本需同时改三处。Screenshots / preview
无前端改动。
🤖 Generated with Claude Code