From 0bc5ae5569fa9936f5284412a4984647ef8d6b55 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Mon, 13 May 2019 16:24:00 -0700 Subject: [PATCH] Exclude extra DLLs from final build, put key DLLs in root dir --- package.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b71dfdc352..f825c18295 100644 --- a/package.json +++ b/package.json @@ -207,7 +207,12 @@ ], "target": [ "nsis" - ] + ], + "extraFiles": [{ + "from": "node_modules/@journeyapps/sqlcipher/build/Release/", + "to": ".", + "filter": ["msvcp140.dll", "vcruntime140.dll"] + }] }, "nsis": { "deleteAppDataOnUninstall": true @@ -285,7 +290,11 @@ "node_modules/socks/build/common/*.js", "node_modules/socks/build/client/*.js", "node_modules/smart-buffer/build/*.js", - "!node_modules/@journeyapps/sqlcipher/deps/*" + "!node_modules/@journeyapps/sqlcipher/deps/*", + "!node_modules/@journeyapps/sqlcipher/build/*", + "!node_modules/@journeyapps/sqlcipher/lib/binding/node-*", + "!node_modules/@journeyapps/sqlcipher/lib/binding/electron-*/msvcp140.dll", + "!node_modules/@journeyapps/sqlcipher/lib/binding/electron-*/vcruntime140.dll" ] } }