Hello! Just wanted to share a little bit of code that might be useful it permits to open the inspector in a game bundled with electron builder for debugging.
if (typeof require !== "undefined") {
const electron = require('electron');
if (typeof electron !== "undefined") {
electron.remote.getCurrentWindow().webContents.openDevTools()
}
}