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

Support for koffi or node-ffi #69

Open
aw1875 opened this issue Jul 27, 2022 · 4 comments
Open

Support for koffi or node-ffi #69

aw1875 opened this issue Jul 27, 2022 · 4 comments
Labels
question Further information is requested

Comments

@aw1875
Copy link

aw1875 commented Jul 27, 2022

This is more a question than anything else. But I was wondering if its possible to use packages like koffi or node-ffi. I tried to see if I could add it manually to the package but I had no luck. I know that the creator of koffi just made some changes so that it works with electron so realistically it should work but I'm assuming there are some changes I need to make to access my dlls using this. Any help would be appreciated.

@karolis-sh
Copy link
Owner

Hard to tell, not sure how these work. If they in theory work in electron and snowpack, some glue could be added to make them work in this package. Could be just proper electron setup necessary and could work.

@karolis-sh karolis-sh added the question Further information is requested label Jul 29, 2022
@aw1875
Copy link
Author

aw1875 commented Jul 29, 2022

With the React Electron boilerplate package I was pretty easily able to copy the dll's manually using CopyWebpackPlugin. However I believe the default electron config packages it by default in the app.asar.

@karolis-sh
Copy link
Owner

I guess then you could search for some alternative plugins in snowpack that would do file copying. Depending on the lifetime when these files are needed, you could as well just use some shell script.

@aw1875
Copy link
Author

aw1875 commented Jul 29, 2022

Ya I'm note entirely sure if electron is the best option for what I'm working on since I will be requiring a lot of low level functions but I was just taking a look at what kind of DLL options exist in case it turns out to be the best approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants