I have a command-line program, say "myprogram.exe" installed in the resources directory of my nodejs-electron application.
I run my electron application via "npm start" with no problem: the nodejs function execPromise finds myprogram.exe and runs fine.
When I try to package my app using electron-forge command "npm run make", the file "myprogram.exe" is not copied into the out/myprogram-win32-x64/resources directory.
I added the following lines inside package.json:
"build": {
"appId": "myapp",
"directories": {
"buildResources": "resources"
},
"files": [
"resources/**/*"
]
}
and I have added to forge.config.js the following lines:
module.exports = {
packagerConfig: {
asar: true,
extraFiles: ['resources/myprogram.exe'],
},
but myprogram.exe is nowhere in the out/** directories... Any idea?