Skip to content

fix: add bindings as runtime dependency for Windows packaging#71

Merged
TeFuirnever merged 1 commit into
mainfrom
fix/windows-bindings-runtime
Jul 24, 2026
Merged

fix: add bindings as runtime dependency for Windows packaging#71
TeFuirnever merged 1 commit into
mainfrom
fix/windows-bindings-runtime

Conversation

@TeFuirnever

Copy link
Copy Markdown
Owner

Summary

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

Credit: @Deeeemooo (original PR #50, recreated from repo branch so CI can validate — fork PRs don't trigger CI).

Problem

When Murmur starts, better-sqlite3 loads its native addon through require('bindings')('better_sqlite3.node'). The packaged Windows app was missing bindings, causing the Electron main process to throw before creating the BrowserWindow. Visible result: Murmur.exe starts but no desktop window appears.

Fix

  • Add bindings@^1.5.0 as a production dependency
  • Remove bindings from the ghost-dependency test list (it was incorrectly flagged as a ghost dep)
  • Add regression test ensuring bindings stays as a direct dependency

Type of Change

  • Bug fix

Checklist

  • pnpm test passes (652 tests)
  • New code has corresponding tests (regression test included)
  • Commit messages follow Conventional Commits

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
@TeFuirnever
TeFuirnever merged commit 1915649 into main Jul 24, 2026
1 check passed
@TeFuirnever
TeFuirnever deleted the fix/windows-bindings-runtime branch July 24, 2026 01:32
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.

1 participant