Can't execute bat file NodeJS + Electron

Viewed 17

I am trying to run a .bat file in my nodejs + electron project and it never executes it.

This is my folder structure:

Folder structure

This the code i run:

Code

And this is the path it gives me:

Output

I have tried many many paths and it never seems to work. It might be related to Asar but I'm not sure.

If i run cross-env NODE_ENV=development electron . it works fine and I can confirm that the batch file is executed.

We built with

electron-builder --dir --win --x64 

and we use electron-wix-msi to create an installer.

0 Answers
Related