Skip to content

fix(release): add repository field for electron-builder - #4368

Merged
Jocs merged 1 commit into
developfrom
fix/release-repository-field
Jun 5, 2026
Merged

Jocs merged 1 commit into
developfrom
fix/release-repository-field

Conversation

@Jocs

@Jocs Jocs commented Jun 5, 2026

Copy link
Copy Markdown
Member

Summary

After the monorepo split (#4302), electron-builder runs from packages/desktop/ where there is no sibling .git/config to auto-detect the repo. Without an explicit repository field in packages/desktop/package.json, publish-config inference returns null and computeChannelNames crashes while generating updater metadata:

TypeError: Cannot read properties of null (reading 'channel')
  at computeChannelNames (app-builder-lib/.../updateInfoBuilder.ts:47)

#4361 restored local builds but didn't surface this because the crash happens in the updater-metadata path, not the install path.

This adds the canonical GitHub repository entry. Cherry-picked from the release/v0.19.1 branch — validated by the v0.19.1 release run that now produces latest.yml / latest-mac.yml / latest-linux.yml correctly across all 5 platforms.

Test plan

  • v0.19.1 release run on the release/v0.19.1 branch succeeded end-to-end with this fix (4 platforms first try + 1 ARM64 rerun for an unrelated flake; publish step generated all 24 expected assets)
  • PR CI (lint + typecheck + tests) passes

After the monorepo split, electron-builder runs from packages/desktop/
where there is no sibling .git/ to auto-detect. Without an explicit
repository field, publish config inference returns null and
computeChannelNames crashes generating updater metadata:

  TypeError: Cannot read properties of null (reading 'channel')
    at computeChannelNames (app-builder-lib/.../updateInfoBuilder.ts:47)

Add the canonical repository entry so electron-builder can build the
GitHub publish config and produce latest.yml / latest-mac.yml as before.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Build artifacts for PR #4368:

Run: https://github.com/marktext/marktext/actions/runs/26995181576

Artifact Size Link
marktext-windows-arm64 249.6 MB Download
marktext-macos-x64 249.2 MB Download
marktext-linux 540.7 MB Download
marktext-windows-x64 250.9 MB Download
marktext-macos-arm64 238.9 MB Download

@Jocs
Jocs merged commit d14c3d6 into develop Jun 5, 2026
10 checks passed
@Jocs
Jocs deleted the fix/release-repository-field branch June 5, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant