From d98f1ff7544dc1cf34b6e02f48e09e9a1153360b Mon Sep 17 00:00:00 2001 From: thzxx Date: Fri, 17 Apr 2026 17:44:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8C=85?= =?UTF-8?q?=E5=90=8E=20sql.js=20=E6=9C=AA=E5=8C=85=E5=90=AB=E5=9C=A8=20app?= =?UTF-8?q?.asar=20=E5=AF=BC=E8=87=B4=E5=90=AF=E5=8A=A8=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit electron-builder 的 files 配置中 !node_modules/**/* 排除了所有 node_modules,但 sql.js 作为运行时依赖必须被打包。在排除规则前 显式包含 node_modules/sql.js/**/* 即可。 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 52b97a8..b109eea 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "files": [ "dist/**/*", "assets/**/*", + "node_modules/sql.js/**/*", "!node_modules/**/*" ], "extraResources": [