Add a config.js file at the root of the project so that fluent-ffmpeg grabs static versions of ffmpeg and ffprobe
Install electron-packager globally for easy packaging from the command line: npm install electron-packager -g
Note: At some point I started using npm instead of yarn. Pick one if possible. I recommend yarn since most Electron boilerplates use it.
At this point, you can create an Electron application that successfully uses FFmpeg in both development and production environments.
Walk through this tutorial to set up React in a development environment in Electron. This setup alone doesn't mount the React components in a packaged application.
Add the following npm script in package.json:
"start:prod": "webpack && electron ."
This script allows you to test whether added components/functionality will work in a packaged app and does mount React components in a production environment.
To be positive a new addition works in a production environment (a packaged desktop app), run npm run bundle in order to bundle all React components via Webpack before packaging the application. Then package the app using your global installation of electron-packager:
electron-packager