From 72802f3f7c9bf08fab9be166d998fa6658379eaf Mon Sep 17 00:00:00 2001 From: 4gray Date: Fri, 5 Dec 2025 08:38:18 +0100 Subject: [PATCH] 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. --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e7fc4b287..1582ddbdb 100644 --- a/package.json +++ b/package.json @@ -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" ] }