mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-28 01:57:25 +08:00
feat(server): isolate better-sqlite3 native binary for Electron/Node coexistence
Add rebuild-native.sh script that compiles better-sqlite3 in an isolated temp directory for system Node.js, storing the binary at packages/server/native/. DatabaseManager and openBetterSqliteDatabase now accept nativeBinding option. CLI auto-detects non-Electron environment and uses the isolated binary.
This commit is contained in:
@@ -17,6 +17,7 @@ error-log-*.txt
|
||||
|
||||
# Project
|
||||
dist/
|
||||
packages/server/native/
|
||||
.history/
|
||||
out
|
||||
.obskey
|
||||
|
||||
Reference in New Issue
Block a user