Skip to content

fix(desktop): unblock the 2.0.1 desktop build — node-sidecar file IO and arm64 preinstall - #125

Open
lxrzlyr wants to merge 29 commits into
devfrom
fix/2.0.1-desktop-build
Open

lxrzlyr wants to merge 29 commits into
devfrom
fix/2.0.1-desktop-build

Conversation

@lxrzlyr

@lxrzlyr lxrzlyr commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Issue for this PR

Closes #126

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The 2.0.1 desktop build fails because five migration services use Bun file APIs in the Node sidecar bundle, and the Windows arm64 npm preinstall reads the workspace root's unsupported catalog: dependencies. This change uses node:fs/promises in those services and installs the arm64 packages under an empty temporary prefix before copying them into node_modules.

How did you verify your code works?

packages/desktop bun run prebuild completed locally. The pull request's desktop build and test checks are the release gate.

Screenshots / recordings

Not applicable; this changes build behavior.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

The desktop build's node-bundle guard correctly rejected Bun.write/Bun.file
in the five migration server modules (they ride the maintenance handlers
into the sidecar bundle); switch them to node:fs/promises, which is the
sidecar's runtime contract.

The arm64 Windows preinstall ran npm at the repo root, where the workspace's
catalog: protocol is an unsupported URL type for npm. Install into an empty
RUNNER_TEMP prefix instead (npm then ignores every package.json) and copy the
platform packages into the root node_modules where electron-builder's os/cpu
filter already picks them up.
@github-actions

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@lxrzlyr lxrzlyr reopened this Sep 23, 2026

This branch has not been deployed

No deployments
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.

fix(desktop): unblock 2.0.1 desktop build

2 participants