-
Notifications
You must be signed in to change notification settings - Fork 16
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
Distribution with Electron #4
Comments
First off, I think it would be best if electron offered such feature out of the box. Relying/Depending on java in a node application/context is pretty bad and gkm was more of a proof of concept than expected to be used in any production application to be honest. Now, it is true that it would be relatively simple to modify
such that it could receive any path to the java binary. As a side note, So, something like |
Seems like anything that occurs while Electron is focused is already covered. I'm not sure Electron could handle anything outside of the window. I'll make an issue for it over there but my guess is it'll be out of scope. I could remove Something like this? I don't know much about using and managing child processes. |
I agree with you that it is likely this is out of Electron's scope. NW.js however did implement something (see nwjs/nw.js#1735). As for your gist, yes, something like that would work (don't forget to export setJavaPath). Furthermore, I think you'd want to call |
@tomzx How do you pack Java with the Electron package so you can use the Local Java path instead of using the Globally installed one? |
When I package up the application, if the user doesn't have Java installed
gkm
won't run.I've run into the same issue with
gm
and have packaged a binary with Electron to distribute. I can then use theirappPath
option to refer to the local gm instead of looking for a globally installed gm.Here's the easiest place to check that out:
https://github.com/aheckmann/gm/blob/c1bef9d4fd21e34ef8138f44a85c342aeae1f174/lib/compare.js#L24
I was going to do the changes myself and create a pull request but I think it'll end up needing to change the way people need to implement
gkm
in their project. What are your thoughts on this change?The text was updated successfully, but these errors were encountered: