Create folders during app install process


#1

What are ways that during the install process of my Electron app, I can create a folder structure on the client machine for things like saved images and embedded databases?

I don’t want the folders in the app directory as when it’s built into a .asar, it’s not possible to modify the file.

Currently I’m using electron builder to create installers for me using a two package.json setup.

I could just write some code that checks for the folders each time that the app is started, but I’d like a more elegant way that would create them during the install process.

I’m fairly new to Electron and Node.js, but have a decent understanding of JavaScript as a whole being a .NET web developer.

Thank you for any help with this!