Repository navigation
fix(build): use VS2026-compatible node-gyp inside Electron Forge - #66
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Windows dependency installation succeeds after #65, but Electron Forge's packaging step still invokes
@electron/rebuild3.x, which imports the old@electron/node-gypfork directly. That copy ignores the npm CLI override and cannot recognize Visual Studio 2026.Resolve
@electron/node-gypto upstream node-gyp 12.4.0 using a Yarn package alias, and regenerate the desktop lockfile. This updates the native tool inside Forge and other legacy rebuild consumers without changing their rebuild API or forcing a Forge major upgrade. The manifest source isresources/package.json, which is copied intostaticduring compilation. The lockfile also removes dependencies used only by the obsolete fork.Original failure: https://github.com/logseq/og/actions/runs/44323439346/job/134882390152
Validation:
windows-latest, reusing the compiledstaticartifact from the failed run and applying this PR's manifest and lockfile. The validation harness lives on a separate branch and is not part of this PR.yarn install --frozen-lockfile --ignore-scriptspasses and preserves the lockfile; verified Forge's worker resolves node-gyp 12.4.0.git diff --checkpasses.