build(win): unpack libsql native bindings in ASAR

Add an asarUnpack rule for node_modules/@libsql/** so native bindings are
not embedded in the ASAR archive. This ensures libsql's native modules
are available at runtime for the Electron app and prevents issues when
loading native binaries from inside an ASAR.

Also remove ia32 architecture from NSIS target, keeping only x64 to
align installers with supported platforms and reduce build artifacts.
This commit is contained in:
4gray committed 2025-12-05 08:38:18 +01:00
1 parent c2b1220386
commit 72802f3f7c
1 file changed
+3 -1
+3 -1
View File
@@ -33,6 +33,9 @@
"remote-control-web/**/*",
"!**/*.map"
],
"asarUnpack": [
"node_modules/@libsql/**"
],
"extraMetadata": {
"main": "electron-backend/main.js"
},
@@ -92,7 +95,6 @@
{
"target": "nsis",
"arch": [
"ia32",
"x64"
]
}