Reputation: 4765
I am trying to fix a tricky production issue in electron app.
And electron-builder takes around 5-6 minutes to build
Is there I can only build project.app and save time by not building .dmg file etc ?
Upvotes: 1
Views: 1550
Reputation: 61
If none of this work, you can always use a script to clean the .app file, run electron-builder as background process, then check until the .app file is built, kill the electron-builder process.
Upvotes: 0
Reputation: 336
Just add dir as target in your package.json
"build": {
"appId": "app.id",
"mac": {
"category": "your.app.category.type",
"target": "dir"
}
}
Upvotes: 4
Reputation: 281636
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"
],
},
Upvotes: 2