Search code examples
electronelectron-builderelectron-packager

How to build only .app using electron-builder


I am trying to fix a tricky production issue in electron app.

And electron-builder takes around 5-6 minutes to build

  • project.app
  • project.dmg
  • project.mac.zip and so on.

Is there I can only build project.app and save time by not building .dmg file etc ?


Solution

  • Just add dir as target in your package.json

    "build": {
        "appId": "app.id",
        "mac": {
            "category": "your.app.category.type",
            "target": "dir"
               }
     }