I have a config file that is sitting next to the app. Users need to be able to reach and open that file to configure the app. Then the app automatically look for that file and reads it.
So, in the folder, there's:
I could, of course, put the config elsewhere, like in the user folder, but the user folder on mac is hidden by default, making it difficult for users to find it for edit.
If I use NWjs.AppFolder as is, it will search for the config file deep inside the .app, making it super hard for users to find it. Also, I think it's against Apple's Mac Appstore regulation for an app to edit stuff within itself, or the ask the user to do it.
Another workaround could be to ask the user, at launch, to locate the config file using the file explorer action, but my app is meant to be fully automated : launch, do it's thing and close without user input. So I can't do that either.
I hope this explanation helps you understand better.