a01d2ee21a
With a GH_TOKEN/GITHUB_TOKEN in the environment, electron-builder auto-selects the github provider and resolves owner/repo from the repository field, falling back to reading <projectDir>/.git/config. projectDir is apps/desktop, which has no .git of its own, and app-builder-lib does not walk up to the workspace root -- so resolution returned null and threw "Cannot detect repository by .git/config". On Linux this fires from onAfterPack for a plain `dir` target: the darwin and Windows branches return early for non-installer targets, Linux has no such guard. That is why the same build worked elsewhere. --publish never keeps `pack` from reaching this at all, but `dist:*` and test-desktop.mjs still resolve publish config on a machine with a token, so declare the field too. Tests call the real app-builder-lib resolver rather than asserting on the text of package.json, so they track electron-builder's behavior instead of our formatting. Co-authored-by: airo7 <airo7@users.noreply.github.com> Co-authored-by: frankmendes1979 <frankmendes1979@users.noreply.github.com>