diff --git a/main.js b/main.js index b13d136..48e23c6 100644 --- a/main.js +++ b/main.js @@ -8,6 +8,7 @@ const { ipcMain, clipboard, dialog, + crashReporter, desktopCapturer, } = require('electron'); const path = require('node:path') @@ -100,6 +101,11 @@ const additionalData = { myKey: 'myValue' } app.on('ready', () => { const gotTheLock = app.requestSingleInstanceLock(additionalData) if (gotTheLock) { + app.getPath('crashDumps') + crashReporter.start({ + uploadToServer: false, + ignoreSystemCrashHandler: false + }) env = process.argv.find((arg) => arg.startsWith('--env='))?.split('=')[1]; if (env === 'development') { Object.defineProperty(app, 'isPackaged', {