Electron-packager is generating correct .app file Electron-Builder is showing blank screen

Viewed 507

I was using electron-packager to generate .app file from my Angular-Electron app and then electron-installer-dmg to generate installable .dmg file from .app. But I have to add Notarizing to my app which I could not figure out how to do with electron-installer-dmg, so I am switching to Electron-Builder. My app is showing blank screen when build with Electron-Builder while working correctly when I generate .app file using electron-packager which shows there is no path issue. My Electron-Builder configurations look like that:

"build": {
    "mac": {
      "icon": "build/icon2.ico",
      "target": [
        "dmg"
      ]
    },
    "files": [
      "**/*"
      "*.js",
      "build",
      "node_modules",
      "package.json"
    ],
  },
  "scripts": {
    "pack": "electron-builder --dir",
    "dist": "electron-builder"
  }

Resulting file (both .app and .dmg) is showing blank screen. Devtools are also not showing any erros:

enter image description here

0 Answers
Related