fix(desktop): upgrade better-sqlite3 to 13 so the Electron 43 installer builds and opens its database

better-sqlite3 12.8.0 has no prebuild for Electron 43 (ABI 148) and does not compile against
its V8 API, so the v1.18.0 installer build stopped in fix-native-abi and was never published.
13.2.0 ships Node-API prebuilds in the package; one binary runs on Node and Electron.

- fix-native-abi.mjs: nothing to swap when the packaged module is a Node-API prebuild.
- verify-native-abi.mjs: require the target prebuild, fail on a shadowing build/Release binary,
  and open a database through the packaged module.
- electron-builder: leave out the linux prebuilds we do not ship.

Verified: desktop 2,933 tests on Node 24, and WAL/transaction/FTS5 queries in an Electron
43.8.10 main process.
This commit is contained in:
Yun Chan 2026-11-20 15:30:08 +09:00
parent a117bc0d09
commit fb5f76f57f
9 changed files with 88 additions and 255 deletions

View file

@ -13,9 +13,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Plugin system for custom pipelines
## [1.18.1] - 2026-11-20
> Supersedes unpublished `1.18.0`, whose installer could not be built, and ships everything listed under `1.18.0`.
### Fixed
- The Electron 43 installer can be built and can open its database again: the SQLite driver is upgraded to better-sqlite3 13, whose Node-API binary runs on both Node and Electron. The previous driver had no Electron 43 build and did not compile against it.
- The release build now verifies the packaged database driver by opening a database and running a query, instead of only checking which runtime it was compiled for.
## [1.18.0] - 2026-11-20
> Screen text capture (OCR) for Windows, plus the Electron 43 toolchain upgrade and the 2026-11-17 backlog batch.
> Screen text capture (OCR) for Windows, plus the Electron 43 toolchain upgrade and the 2026-11-17 backlog batch. Never published — see `1.18.1`.
### Added
- **Screen text capture (OCR).** Press `Ctrl+Alt+O` (rebindable under Settings → key bindings) to freeze the monitor under the cursor and select the text on it: