I have an Electron build where I have put my app in
Everything works fine. When I try to write a file (for instance with
fs.writeFileSync) within the app root iteself (
Electron.app/Contents/Resources/app directory) I get the following error:
Uncaught Error: EACCESS: permission denied
I made sure that the directory is writable. I can write everywhere else (for instance in
/tmp). Since I need the app to modify some files of the app itself (for update reasons), what’s wrong in what I’m trying to do? How to overwrite app files?