Hi, I’ve got an Electron-based project on Windows which is working well in my build directory via npm start. I’m now trying to create a distribution for the project and can’t make that work.
I’ve followed the web page to do manual distribution creation, and also tried using electron-packager. I end up with an executable that starts, launches two other processes but then seems to be waiting forever rather than completing initialisation and opening a window (as I would expect it to).
I’ve attached VSCode to the main process using --debug-brk=5858 and can see the process apparently starting, but I set several breakpoints in main.js (including at the top) and nothing gets hit. After initialisation, it says the executable isn’t in js code so it can’t display where we are, and a test connection of Visual Studio shows many threads but nothing enlightening happening (I don’t have the whole Electron package built in C++ though but am hoping to avoid having to go to that extent!)
I can’t think of how to even get started debugging this - any help would be greatly appreciated!