Repository navigation
Conversation
… database handling with better-sqlite3
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
… database handling with better-sqlite3
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
What is Changed / Added
stopAntivirus()to cancel in-flight scans and shut down the ClamAV manager during app quit, wired intoregisterQuitHandleralongside mail bridge and virtual drive teardown.stop-antivirusand quit handler coverage for the new cleanup step.driver: BetterSqlite3with a typed default import; added@types/better-sqlite3; extendeddata-sourcetests with abetter-sqlite3mock.beforeBuildnow returnstrueso electron-builder includes productionnode_modules(fixes missingbetter-sqlite3in packaged builds).buildDependenciesFromSource: true,asarUnpacklimited to**/*.{node,dll}, removed manualextraResources/filescopies for native modules.Why
.debbuilds failed to open withDriverPackageNotInstalledErrorbecause dependencies were not bundled and TypeORM’s dynamicrequirecould not resolvebetter-sqlite3inside the asar. Bundling prod deps and passing an explicit driver ensures a staticrequirein the main bundle and correct native addon layout (JS in asar,.nodeunpacked).Summary by CodeRabbit