This fixes the white-screen problem on the latest RC build. I enabled a debug tool and noticed that electron was trying to load file://app.html. This is because it's using process.cwd() which is necessary in dev mode, but breaks in prod mode.
I added a flag to check the node env, and then use app.getAppPath() instead of process.cwd() for production builds.
This fixes the white-screen problem on the latest RC build. I enabled a debug tool and noticed that electron was trying to load
file://app.html
. This is because it's using process.cwd() which is necessary in dev mode, but breaks in prod mode.I added a flag to check the node env, and then use app.getAppPath() instead of process.cwd() for production builds.