I am trying to run a .bat file in my nodejs + electron project and it never executes it.
This is my folder structure:

This the code i run:

And this is the path it gives me:

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.