I'm making an electron app and it's using @ffmpeg-installer/ffmpeg module.
It's working well in the development mode but not working when releasing the app. It shows blank page and can't find the ffmpeg-installer module.
.
This is the electron build configuration
"build": {
"productName": "DeskreenRecorder",
"appId": "com.sultanov.Deskreen",
"copyright": "Copyright © 2022-present Ilvircr Sultanov",
"files": [
"dist/",
"node_modules/",
"app.html",
"peerConnectionHelperRendererWindow.html",
"main.prod.js",
"main.prod.js.map",
"package.json",
"locales/",
"client/build"
],
"dmg": {
"contents": [
{
"x": 130,
"y": 220
},
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"target": [
"nsis",
"msi",
"portable"
]
},
"portable": {
"artifactName": "${name}_${version}_Windows_portable.exe"
},
"linux": {
"target": [
"deb",
"rpm",
"AppImage"
],
"category": "Development"
},
"directories": {
"buildResources": "resources",
"output": "release"
},
"publish": {
"provider": "github",
"owner": "leosultanov",
"repo": "deskreen-recorder",
"private": true
}
}