Search code examples
electronsoxelectron-packager

Packaging dependencies inside electron app


My electron app for Mac OSX has sox dependency. What's the best way to include it as part of electron-package? I'd prefer the user not having to install sox separately (unfortunately most of my users are not that savy). Is there a way to include sox binaries directly or sequence pre-install of sox before my app?


Solution

  • I ended up including the sox binary into the package. I used node-record-lpcm16 package and updated its path to use included sox binary. This way I can pass down the the lib path as a parameter.