emrg: 修复 windows 构建失败 — CSC_LINK 空字符串 env 触发 electron-builder 路径解析 bug(#441 回归) - #451
Closed
argszero wants to merge 1 commit into
Closed
emrg: 修复 windows 构建失败 — CSC_LINK 空字符串 env 触发 electron-builder 路径解析 bug(#441 回归)#451argszero wants to merge 1 commit into
argszero wants to merge 1 commit into
Conversation
…#441 回归) v0.2.7 build-release(run 31067519195)windows-x64 job 失败: ⨯ Env WIN_CSC_LINK is not correct, cannot resolve: D:\a\emrg\emrg\emrg\gui not a file 根因:#441 给 Build GUI 步骤加 CSC_LINK/CSC_KEY_PASSWORD env,非 macOS 上表达式求值为空字符串。electron-builder 将空字符串 CSC_LINK 视为 已设置并解析为相对路径(working-directory)→ 失败。 修复:移除 step env,改为 run 脚本内条件 export(仅 macOS + Secret 存在时设置)。Windows/Linux 完全不设置 → electron-builder 走不签名 分支(保持 #441 之前行为)。macOS 签名降级逻辑不变。 验证:actionlint 全绿(exit 0);pytest 473 passed;import + --help OK。
This was referenced Aug 6, 2026
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.
问题
v0.2.7 build-release(run 31067519195)windows-x64 job 失败:
⨯ Env WIN_CSC_LINK is not correct, cannot resolve: D:\a\emrg\emrg\emrg\gui not a filev0.2.6(bee1211,无签名代码)windows 构建成功 → 确认是 #441 引入的回归。
根因
#441 给 Build GUI 步骤加
CSC_LINK/CSC_KEY_PASSWORDenv,非 macOS 上表达式求值为空字符串。electron-builder 将空字符串 CSC_LINK 视为已设置并解析为相对路径(working-directoryemrg/gui)→ 失败。修复
移除 step env,改为 run 脚本内条件 export(仅 macOS + Secret 存在时设置):
与 #450(macOS keychain partition
-s修复)互补,两者合起来修复 v0.2.7 三平台构建。验证
emrg --helpOK