fix(build): 修复 Windows 打包阻塞问题
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

- 修正 self-improving-agent skill 的 repoPath,指向包含 SKILL.md 的子目录
- 强制 electron-builder 在 Windows 上识别 pnpm,避免 fallback 到 npm 导致依赖收集极慢

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
zyh
2026-07-10 21:19:47 +08:00
parent 1060b66d3b
commit 9284f3e3e7
2 changed files with 8 additions and 2 deletions

View File

@@ -43,7 +43,7 @@
{
"slug": "self-improving-agent",
"repo": "peterskoett/self-improving-agent",
"repoPath": ".",
"repoPath": "self-improving-agent",
"ref": "master",
"version": "main",
"autoEnable": true

View File

@@ -32,7 +32,13 @@ function spawnElectronBuilder() {
return spawn(ELECTRON_BUILDER_BIN, args, {
cwd: ROOT,
stdio: 'inherit',
env: process.env,
env: {
...process.env,
// Force electron-builder to detect pnpm on Windows where the packageManager
// field is sometimes ignored and it falls back to npm (which chokes on
// pnpm's node_modules layout and becomes extremely slow).
npm_config_user_agent: process.env.npm_config_user_agent || 'pnpm/10.33.4',
},
shell: process.platform === 'win32',
});
}