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:
digua
2026-05-11 20:24:39 +08:00
parent 0d0dbdb6ce
commit d040aaaa98
6 changed files with 68 additions and 3 deletions
+1
View File
@@ -17,6 +17,7 @@ error-log-*.txt
# Project
dist/
packages/server/native/
.history/
out
.obskey