I have a file that I need to make my application work.
I am able to use the file in development by specifying fixed path
var path = process.cwd() + '/src/app/components/task/Scripts';
and the file name after that. But after packaging the app I want to move the file I need into the extraResources
folder in the system from where I will be able to use it
let path = pathPackage.join(process.resourcesPath, 'extraResources');
I am using electron-forge maker to produce a production build exe. However there is no extraResources
folder created after installing the exe.
I am specifying it in the package.json
file
"build": {
"extraResources": [
"./extraResources/**"
]
}
Can someone provide a solution for this? I have tested all examples but none of them worked.