Build Electron with library and call it


#1

I want to include a compiled library that is used for command lines (on Mac)

Works fine on the machine that has the library installed on the machine:

 var exec = require('child_process').exec
  exec('TheLibrary ' + "the commands"  , function (error, stdout, stderr) {

but what I want to do is build the Electron app, package and install on a machine where this library is not installed.
I have copied it over to the node-modules directory but unable to get exec to use a specific path.

Any suggestions?