Editorial question38.6K views1,013 votes0 answers4,171 following
AI-generatedWhich path should Electron use for writable files when asar is enabled in production?
An Electron app needs a single path strategy for reading bundled assets and writing user data that works in development and after packaging. In development the app runs from loose files on disk, so paths derived from __dirname resolve to a writable directory. In production builders such as electron-builder and electron-packager archive the app directory into