Electron – How to add external files?

Managed to solve it by using extraResources. Should be declared under build in your package.json file. For example: Create a new folder named extraResources adjacent to pacakge.json Add the following code to your package.json file: “build”: { “extraResources”: [“./extraResources/**”] } Then, you can access the files inside this folder by using __dirname + ‘/../extraResources/’ from … Read more

Cannot find module ‘fs/promises’ Electron JS

I experienced this issue a few days ago as well. I realized that trying to fix another issue, I deleted the node_modules folder and the package-lock.json file, then run the npm install command. This made the build to fail with ‘fs/promises’. There are 2 solutions to this issue: Download the latest stable Node version. This … Read more

electron-builder vs electron-packager [closed]

Update August 2019 I’ve been using electron-builder for more than a year now, packaging my app for macOS, Windows 10, and Ubuntu Desktop. The maintainer, develar, added a great docs site earlier this year, and has been staying on top of gatekeeper changes to macOS to ensure installers and updaters still work. Update November 2018 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)