makebrainwaves / BrainWaves

An easy-to-use platform for EEG experimentation in the classroom
MIT License
60 stars 26 forks source link

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

Closed jdpigeon closed 3 years ago

jdpigeon commented 3 years ago

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.

jdpigeon commented 3 years ago

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

jdpigeon commented 3 years ago

Seems to be Windows-specific