From 7f104b0dbbe1cc5b0bed9dc91879c975e592ceaf Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Tue, 8 Sep 2026 15:45:46 -0700 Subject: [PATCH] fix(git): stop telling packaged users to run a dev bootstrap command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A packaged app reaching this branch ships no bootstrap python for its platform — Linux ARM64 by design after this stack — but the warning claimed bootstrap-python// was missing and told the reader to run "pnpm run bootstrap". That lands in the user's log bundle once per launch, so a bug report built from it points at a packaging defect that isn't one, and names a command that doesn't exist for them (and now exits without building on that host anyway). Keep the developer hint for unpackaged runs; state the platform plainly in packaged ones. --- src/main/lib/ipc/index.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/lib/ipc/index.ts b/src/main/lib/ipc/index.ts index 6bd6f372d..ae3685579 100644 --- a/src/main/lib/ipc/index.ts +++ b/src/main/lib/ipc/index.ts @@ -217,10 +217,17 @@ export function register(callbacks: RegisterCallbacks = {}): Promise { return } + // The "build it" hint is for developers. A packaged app that reaches + // here ships no bootstrap for its platform (Linux ARM64 today), so the + // command does not exist for the user and the log would send whoever + // reads it — support included — after a packaging defect that isn't one. console.warn( - '[ipc] Bootstrap pygit2 not available — bootstrap-python// is missing. ' + - 'Run "pnpm run bootstrap" (or "pnpm run bootstrap:fetch") to build it. ' + - 'Falling back to standalone-install pygit2 / system git.' + app.isPackaged + ? `[ipc] No bundled bootstrap python for ${process.platform}-${process.arch}. ` + + 'Falling back to standalone-install pygit2 / system git.' + : '[ipc] Bootstrap pygit2 not available — bootstrap-python// is missing. ' + + 'Run "pnpm run bootstrap" (or "pnpm run bootstrap:fetch") to build it. ' + + 'Falling back to standalone-install pygit2 / system git.' ) if (forceBootstrap) {