fix: package bindings runtime dependency#50
Closed
Deeeemooo wants to merge 1 commit into
Closed
Conversation
Owner
|
Closing to recreate from a repo branch so CI can validate (fork PRs don't trigger CI). Will credit @Deeeemooo in the new PR. |
4 tasks
TeFuirnever
added a commit
that referenced
this pull request
Jul 24, 2026
Credit: @Deeeemooo (PR #50) Fixes Windows packaged app startup failure: better-sqlite3 loads its native addon via require('bindings')('better_sqlite3.node'), but the packaged app was missing 'bindings'. This caused Murmur.exe to start with no visible window. - Add bindings@^1.5.0 as production dependency - Remove from ghost-dependency test list - Add regression test ensuring bindings stays as direct dependency Co-authored-by: woshiguanxiaoliang <woshiguanxiaoliang@noreply.gitcode.com>
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.
Description
Fixes Windows packaged app startup failure caused by a missing
bindingsruntime dependency.When Murmur starts,
better-sqlite3loads its native addon throughrequire('bindings')('better_sqlite3.node'). The packaged app can missbindings, which causes the Electron main process to throw before creating the BrowserWindow. The visible result is thatMurmur.exestarts but no desktop window appears.This PR adds
bindings@^1.5.0as a production dependency and adds a regression test so it is not removed as a ghost dependency again.Type of Change
Checklist
pnpm lintpasses with 0 errorspnpm testpassesTesting