Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra resource #121

Merged
merged 1 commit into from
Apr 26, 2024
Merged

Extra resource #121

merged 1 commit into from
Apr 26, 2024

Conversation

murilopolese
Copy link
Contributor

@murilopolese murilopolese commented Apr 25, 2024

Problem

VirtualBox_WinDev2311Eval_24_04_2024_18_13_10

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.

@murilopolese murilopolese changed the base branch from main to development April 25, 2024 10:06
Copy link
Collaborator

@ubidefeo ubidefeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Built on Windows to test.
Works as expected :)

@murilopolese murilopolese merged commit abd8f74 into development Apr 26, 2024
1 check passed
@murilopolese murilopolese deleted the bugfix/extra-resource branch April 26, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants