On Windows and Linux, when packaged, the app lives inside an asar file.
This causes issues getting the full path for the helpers.py file to be executed.
Solution
There are several ways to go around this issue.
I used electron builder's extraResources to include the helper.py file inside the resources folder on the packaged app.
This way the correct absolute path is resolved when the package is built.
Testing
The operations that use the helper are remove folder (from the board) and upload folder.
Probably needs some more extensive testing on MacOS.
It looks like it's working for Linux and Windows.
Problem
On Windows and Linux, when packaged, the app lives inside an
asar
file. This causes issues getting the full path for thehelpers.py
file to be executed.Solution
There are several ways to go around this issue. I used electron builder's
extraResources
to include thehelper.py
file inside theresources
folder on the packaged app. This way the correct absolute path is resolved when the package is built.Testing
The operations that use the helper are remove folder (from the board) and upload folder.
Probably needs some more extensive testing on MacOS. It looks like it's working for Linux and Windows.