fix(build): 修复 Windows 打包阻塞问题
- 修正 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:
@@ -43,7 +43,7 @@
|
||||
{
|
||||
"slug": "self-improving-agent",
|
||||
"repo": "peterskoett/self-improving-agent",
|
||||
"repoPath": ".",
|
||||
"repoPath": "self-improving-agent",
|
||||
"ref": "master",
|
||||
"version": "main",
|
||||
"autoEnable": true
|
||||
|
||||
@@ -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',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user