Set crashReporter productName in specs
This commit is contained in:
parent
63e9bc4804
commit
d407eab0ff
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,7 @@ process.throwDeprecation = true
|
|||
|
||||
const electron = require('electron')
|
||||
const app = electron.app
|
||||
const crashReporter = electron.crashReporter
|
||||
const ipcMain = electron.ipcMain
|
||||
const dialog = electron.dialog
|
||||
const BrowserWindow = electron.BrowserWindow
|
||||
|
@ -39,6 +40,11 @@ ipcMain.on('message', function (event, ...args) {
|
|||
event.sender.send('message', ...args)
|
||||
})
|
||||
|
||||
// Set productName so getUploadedReports() uses the right directory in specs
|
||||
if (process.platform === 'win32') {
|
||||
crashReporter.productName = 'Zombies'
|
||||
}
|
||||
|
||||
// Write output to file if OUTPUT_TO_FILE is defined.
|
||||
const outputToFile = process.env.OUTPUT_TO_FILE
|
||||
const print = function (_, args) {
|
||||
|
|
Loading…
Reference in a new issue