Skip to content

Pin electron-rebuild for Electron 43.8.3 native module builds - #1055

Closed
AhkunTa wants to merge 1 commit into
cocos:mainfrom
AhkunTa:fix/pin-electron-rebuild
Closed

AhkunTa wants to merge 1 commit into
cocos:mainfrom
AhkunTa:fix/pin-electron-rebuild

Conversation

@AhkunTa

@AhkunTa AhkunTa commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Summary

The native module rebuild in PinK CI stopped before compilation because the copy of node-abi loaded by npx @electron/rebuild could not resolve the ABI for Electron 43.8.3. The old command left the rebuild tool version unpinned.

Pin @electron/rebuild to 4.2.1 and lock its node-abi dependency to 4.43.0. The rebuild script now runs both patch-package and electron-rebuild from the dependencies installed by npm.

Verification

  • Confirmed that the locked rebuild tool resolves Electron 43.8.3 to module ABI 148.
  • Ran npm run rebuild on macOS arm64. Both gl and sharp rebuilt successfully.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 09:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain in the changes that pin Electron rebuild tooling and switch to installed commands.

No open issues 🎉

What changed in this PR

Pins the native-module rebuild tooling to address Electron 43.8.3 ABI resolution failures in PinK CI and make rebuilds reproducible.

Changes:

  • Adds @electron/rebuild version 4.2.1 as a development dependency.
  • Locks its node-abi dependency to 4.43.0.
  • Runs the installed patch-package and electron-rebuild commands instead of using npx.
File Description
workflow/​electron-rebuild.js Switches rebuild steps to installed commands.
package.json Pins @electron/rebuild to 4.2.1.
package-lock.json Locks rebuild tooling and its transitive dependencies.

Review effort: Balanced

@AhkunTa AhkunTa closed this Nov 23, 2026
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.

2 participants