This is crossposted from this StackOverflow post.
I’ve started the Realm-provided realm-electron-advanced-quickstart found here.
Everything works fine when running in dev, but when I package this with electron-builder, the app does not work. I moved
createWindow() to the top of the
app.whenReady() function so I could see the debugger, and it showed the following message:
Failed to open realm: Error: illegal operation on a directory at run (renderer.js:26) at renderer.js:39
Line 26 is
const realm = new Realm(config);
I suspect this is some sort of path/permissions issue with the .realm file.
main.js , I changed the path in the realm config to
But I could not do so on
I’m running Node v14.15.4.
I would appreciate any ideas or examples of how this has been implemented before. I could not find any official guidance on the support docs about how .realm files should be handled in packaged apps. It would be great if the readme on realm-electron-advanced-quickstart explained best practices for packaging the app.