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

Make it compatible with Electron #20

Merged
merged 2 commits into from
Feb 14, 2020
Merged

Make it compatible with Electron #20

merged 2 commits into from
Feb 14, 2020

Conversation

koraniar
Copy link

@koraniar koraniar commented Feb 13, 2020

The variable __dirname when running in electron is /home/koraniar/GitHub/leopardcreek-app/dist_electron/linux-unpacked/resources/app.asar and app.asar is a file not a directory.

So the actions dir and mkdir fails with the error Error: spawn ENOTDIR.

Closes #19

@ricardopolo
Copy link

Please approve this!!

@jakesjews
Copy link
Member

jakesjews commented Feb 13, 2020

Can working directory be a parameter to the functions so it's not a breaking change? If the value isn't passed it can default to __dirname.

@koraniar
Copy link
Author

@jakesjews I do not think that is the best solution because, by default, it will fail in Electron, but if you prefer, I can do it.

@jakesjews
Copy link
Member

I would prefer that so we don't need to make a breaking change

@jakesjews
Copy link
Member

looks good thanks!

@jakesjews jakesjews merged commit ab54e93 into eflexsystems:master Feb 14, 2020
@jakesjews
Copy link
Member

Released in 3.1.0!

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.

Error: spawn ENOTDIR in Electron
3 participants