makebrainwaves/BrainWaves

Packaged version of app doesn't point to correct asar file for resources (e.g. images)

Closed this issue · 2 comments

In several experiments, the app uses __dirname to get the app path in order to construct paths to resources.

It seems that execution of this code may have switched from the main (node) to the renderer (browser) process during the experiment refactor, and that this error is hidden by the development build setup.

This will cause experiments that require assets (e.g. faces/houses) to fail to load their lab.js experiment.

I've created two different patch versions to produce different builds with potential solutions. When they are built they should be tested to see if any of the approaches (electron's app.getAppPath or process.getResourcesPath) solves the issue

Seems to be Windows-specific