How to link third-party binary with Electron?

I'm still new to the e-ecosystem and desktop development in general, but I want to interact with the third-party open source software that comes with my software. Firstly, I'm not sure there should be package options for distribution. Do you usually have two downloads, one for users who already have a third-party binary installed, and one that includes it? Also, how can I actually package and install the binary? Should it be on my .json package? Which script should be run? Are there any npm modules to facilitate this?

edit - is it possible to call npm from my main.js even if the user has not previously installed node? I know that node comes with the electronic package, but is npm also?

- binary in this case - PostgreSQL

+4
source share
1 answer

There are several options that come to me.

  • . , . , ​​ , , , / . , app.relaunch() . , , . , , () .

  • . , , , . , , . , , , , SDK ...

  • , - , , xy .

  • 1/2: . , , . , , , / / .

  • , https://www.npmjs.com/package/pg - npm, - , ;)

electron-builder, .

, .

+2

Source: https://habr.com/ru/post/1651075/


All Articles