2

I have a file that i need compulsory 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 in extraResources folder in 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,how ever there is no extraResources folder created after installing the exe,i am specifying it in package.json file

"build": {
 "extraResources": [
   "./extraResources/**"
 ]
},

Can someone provide a solution for it,i have tested all examples but none of them worked

Martin
  • 21
  • 2

0 Answers0