1
votes

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 ?

2

2 Answers

4
votes

Just add dir as target in your package.json

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

Not sure if you can avoid dmg and mac and only serve .app files but you can avoid generating both dmg and zip file by specifying the target option in mac build config

"mac": {
  "target": [
    "dmg"
  ],

},