fix(electron): unpack sqlite-vec native extension for packaged builds

sqlite-vec loads its native .dylib/.dll/.so via require.resolve(), which
in a packaged Electron app resolves to a path inside app.asar where native
extensions cannot be loaded. Adds sqlite-vec* to asarUnpack so the extension
lands in app.asar.unpacked and require.resolve() returns the correct path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
diguaandClaude Sonnet 4.6 committed 2026-06-21 16:18:39 +08:00
1 parent c9288c8069
commit 0c2b50277f
1 file changed
+1
+1
View File
@@ -26,6 +26,7 @@ files:
# 哪些文件将不会被压缩,而是解压到构建目录
asarUnpack:
- resources/**
- node_modules/sqlite-vec*/**
# Windows 平台配置
win: