Atiq Gauri
Nov 5, 2020

--

Yes, because there is no make script!!!

I have mentioned in article to clone another repository and build addon in it. Then take build/Release/addon.node file and put it in electron src/project directory. From there our web worker call that addon.node file and execute c++ code.

If you want addon and electron app in the same project then make your file structure look like this:

Project_Directory/

- electron_app/

- addon/

And then we can build addon using a script in electron app and copy resultant addon build in our app.

I have done this in a open source project here: https://github.com/AtiqGauri/Patternscape

--

--

No responses yet