ARCHIVED: This project is archived because updates are now being made to the original World Editor (reforged), and because HiveWE is making amazing progress.
MIT License
13
stars
0
forks
source link
Use app.getPath() for application settings directory #36
We are currently using app.getAppPath() as the location for storing plugins, scripting languages, etc. The problem is that while it works in dev, in production the app path includes the /resources/app.asar in the path. Rather than trimming that out only in production, use app.getPath('userData') as the directory to store settings, scripting, and plugins. This will be consistent across dev/prod environments.
We are currently using
app.getAppPath()
as the location for storing plugins, scripting languages, etc. The problem is that while it works in dev, in production the app path includes the/resources/app.asar
in the path. Rather than trimming that out only in production, useapp.getPath('userData')
as the directory to store settings, scripting, and plugins. This will be consistent across dev/prod environments.See: https://github.com/electron/electron/blob/v1.1.0/docs/api/app.md#appgetpathname