mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 10:14:35 +08:00
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:
1 parent
c9288c8069
commit
0c2b50277f
1 file changed
+1
@@ -26,6 +26,7 @@ files:
|
||||
# 哪些文件将不会被压缩,而是解压到构建目录
|
||||
asarUnpack:
|
||||
- resources/**
|
||||
- node_modules/sqlite-vec*/**
|
||||
|
||||
# Windows 平台配置
|
||||
win:
|
||||
|
||||
Reference in new issue
Block a user