Skip to content

fix: package bindings runtime dependency#50

Closed
Deeeemooo wants to merge 1 commit into
TeFuirnever:mainfrom
Deeeemooo:codex/fix-bindings-runtime-dependency
Closed

fix: package bindings runtime dependency#50
Deeeemooo wants to merge 1 commit into
TeFuirnever:mainfrom
Deeeemooo:codex/fix-bindings-runtime-dependency

Conversation

@Deeeemooo

Copy link
Copy Markdown

Description

Fixes Windows packaged app startup failure caused by a missing bindings runtime dependency.

When Murmur starts, better-sqlite3 loads its native addon through require('bindings')('better_sqlite3.node'). The packaged app can miss bindings, which causes the Electron main process to throw before creating the BrowserWindow. The visible result is that Murmur.exe starts but no desktop window appears.

This PR adds bindings@^1.5.0 as a production dependency and adds a regression test so it is not removed as a ghost dependency again.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring

Checklist

  • pnpm lint passes with 0 errors
  • pnpm test passes
  • New code has corresponding tests
  • Commit messages follow Conventional Commits

Testing

pnpm exec vitest run tests/unit/phase0-security.test.js

Test Files  1 passed
Tests  25 passed

@TeFuirnever

Copy link
Copy Markdown
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.

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

3 participants