The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): pin --publish never in run-electron-builder.mjs (salvaged from #87937)
James Matheson3738b880027f
diff --git a/apps/desktop/scripts/run-electron-builder.mjs b/apps/desktop/scripts/run-electron-builder.mjsindex 38e465612f9..61a42424431 100644--- a/apps/desktop/scripts/run-electron-builder.mjs+++ b/apps/desktop/scripts/run-electron-builder.mjs@@ -37,7 +37,16 @@ function electronBuilderCli() {}const dist = electronDistDir()-const args = []+// Local `hermes desktop` builds only ever package (--dir or dist), never+// publish a GitHub release — no CI workflow drives this script. But the npm+// lifecycle env sets CI=1 (so esbuild's postinstall doesn't try interactive+// animations), and electron-builder treats CI=1 as a signal to implicitly+// resolve a publish target. That resolution reads <projectDir>/.git/config+// directly — projectDir here is apps/desktop, which has no .git of its own+// (only the repo root does) and no "repository" field in its package.json —+// so it fails with "Cannot detect repository by .git/config". Pin publish to+// "never" so electron-builder skips that lookup entirely.+const args = ["--publish", "never"]if (dist && fs.existsSync(distBinary(dist))) {args.push(`-c.electronDist=${dist}`)} else {