build: 内网环境下跳过 Windows node-pty 补丁构建并关闭 GitHub 发布
Some checks failed
AI automation / Route event (push) Has been cancelled
AI automation / Hand reopened issue to maintainers (push) Has been cancelled
AI automation / Clean source issue state (push) Has been cancelled
AI automation / Reconcile handoffs (push) Has been cancelled
AI automation / Classify issue (push) Has been cancelled
AI automation / Claude Code smoke (push) Has been cancelled
AI automation / Review issue follow-up (push) Has been cancelled
AI automation / Publish issue follow-up (push) Has been cancelled
AI automation / Implement with Claude Code (push) Has been cancelled
AI automation / Publish implement PR (push) Has been cancelled
AI automation / Continue queued issue comments (push) Has been cancelled
AI automation / Codex review loop (push) Has been cancelled
AI automation / Publish Codex fix (push) Has been cancelled
AI automation / Clear Codex dispatch marker (push) Has been cancelled
AI automation / Own PR re-request Codex (push) Has been cancelled
AI automation / External PR re-request Codex (push) Has been cancelled
AI automation / Poll Codex reaction / retry (push) Has been cancelled
Star History / update (push) Has been cancelled
Some checks failed
AI automation / Route event (push) Has been cancelled
AI automation / Hand reopened issue to maintainers (push) Has been cancelled
AI automation / Clean source issue state (push) Has been cancelled
AI automation / Reconcile handoffs (push) Has been cancelled
AI automation / Classify issue (push) Has been cancelled
AI automation / Claude Code smoke (push) Has been cancelled
AI automation / Review issue follow-up (push) Has been cancelled
AI automation / Publish issue follow-up (push) Has been cancelled
AI automation / Implement with Claude Code (push) Has been cancelled
AI automation / Publish implement PR (push) Has been cancelled
AI automation / Continue queued issue comments (push) Has been cancelled
AI automation / Codex review loop (push) Has been cancelled
AI automation / Publish Codex fix (push) Has been cancelled
AI automation / Clear Codex dispatch marker (push) Has been cancelled
AI automation / Own PR re-request Codex (push) Has been cancelled
AI automation / External PR re-request Codex (push) Has been cancelled
AI automation / Poll Codex reaction / retry (push) Has been cancelled
Star History / update (push) Has been cancelled
调整 electron-builder 配置,Windows 平台仅打包 zip 格式,注释掉 NSIS 和 portable 目标; 注释掉 Windows Hello helper 资源配置以避免路径不存在导致的打包失败; 将发布配置设为 null 以关闭 GitHub 发布请求; 修改 afterPack 脚本,跳过 Windows 下 node-pty ConPTY 补丁的重建和复制,因内网无 MSVC 工具链无法完成该操作。
This commit is contained in:
@@ -304,13 +304,10 @@ async function afterPack(context) {
|
||||
}
|
||||
|
||||
if (context.electronPlatformName === "win32") {
|
||||
const projectDir = context.packager.appDir || context.packager.projectDir;
|
||||
rebuildPatchedNodePty({ projectDir, platform: "win32", arch: context.arch });
|
||||
copyPatchedNodePtyToPackagedApp({
|
||||
projectDir,
|
||||
resourcesDir: appResourcesDir(context),
|
||||
});
|
||||
console.log("[afterPack] Installed patched node-pty ConPTY runtime into packaged app");
|
||||
// [内网跳过] node-pty rebuild + ConPTY patch copy
|
||||
// 需要 MSVC cl.exe + 访问 www.electronjs.org 下载 headers
|
||||
// 当前无 VS C++ 工具链,先跳过 —— release 时重新开启
|
||||
console.log("[afterPack] ⚠️ Windows: 跳过 node-pty ConPTY patch rebuild + copy(内网 / 无 MSVC)");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -365,3 +362,4 @@ module.exports.adHocSignAppBundle = adHocSignAppBundle;
|
||||
module.exports.readAsarHeader = readAsarHeader;
|
||||
module.exports.pruneAsarHeaderEntries = pruneAsarHeaderEntries;
|
||||
module.exports.pruneCursorSdkPlatformPackages = pruneCursorSdkPlatformPackages;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user