-
-
Notifications
You must be signed in to change notification settings - Fork 201
Closed
Labels
Description
Because in v4 it only downloads the binary for the current operating system arch, how can I now build an electron app that includes the correct ffmpeg binary according to which target platform I am building for?
For example if I want to run electron-builder --mac --win --linux
Before v4, I would just include the correct binary from the right arch directory when building like this:
electron-builder package.json "build":
"mac": {
...
"extraResources": [
"node_modules/ffmpeg-static/bin/darwin/**",
"node_modules/ffprobe-static/bin/darwin/**"
],
},
"win": {
...
"extraResources": [
"node_modules/ffmpeg-static/bin/win32/x64/**",
"node_modules/ffprobe-static/bin/win32/x64/**"
],
},
But now this doesn't work. Any tips of how to cleanly solve this? Or isn't electron really supported by this module anymore?