diff --git a/config/build/win/nsis/installer.nsh b/config/build/win/nsis/installer.nsh index 761ba84..bd264c6 100644 --- a/config/build/win/nsis/installer.nsh +++ b/config/build/win/nsis/installer.nsh @@ -3,6 +3,6 @@ !macroend !macro customInstall - File "${BUILD_RESOURCES_DIR}\bin\npcap-0.99-r7.exe" + File "${BUILD_RESOURCES_DIR}\win\bin\npcap-0.99-r7.exe" ExecWait '"$INSTDIR\npcap-0.99-r7.exe" /npf_startup=yes /loopback_support=yes /admin_only=no /dot11_support=yes /vlan_support=yes /winpcap_mode=yes' !macroend \ No newline at end of file diff --git a/electron-builder.json b/electron-builder.json index cc9d34b..1294ad4 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -5,7 +5,7 @@ "extraMetadata": { "name": "overflow-network-scanner" }, - "asar": false, + "asar": true, "compression": "normal", "npmRebuild": false, "npmSkipBuildFromSource": false, @@ -110,10 +110,6 @@ { "from": "config/build/win/bin/probe-${os}-${arch}.exe", "to": "./bin/probe.exe" - }, - { - "from": "config/build/win/bin/npcap-0.99-r7.exe", - "to": "./bin/npcap-0.99-r7.exe" } ] }, diff --git a/src/electron/main.ts b/src/electron/main.ts index c9d7e94..f713767 100644 --- a/src/electron/main.ts +++ b/src/electron/main.ts @@ -196,7 +196,6 @@ app.on('ready', () => { if (err) { console.error(err.message); } - console.log('Connected to the database.'); }); if (!__DEV__) { @@ -410,14 +409,11 @@ app.on('web-contents-created', (event, contents) => { }); app.on('before-quit', function (event) { - console.log(`before-quit`); - if (null !== db) { db.close(); } if (null !== probeProcess && !probeProcess.killed) { - console.log(`probeProcess.kill`); probeProcess.kill('SIGKILL'); } }); @@ -462,11 +458,8 @@ function createWindow() { } window.onClose(() => { - console.log(`closed`); - mainWindow = null; if (!__DARWIN__ && !preventQuit) { - console.log(`app.quit`); app.quit(); } });