Electron-builder: Error building DMG target on macOS 10.15 after 21.2.0 upgrade

Created on 16 Oct 2019  路  2Comments  路  Source: electron-userland/electron-builder


  • Version:
    21.2.0

I updated to 21.2.0 and and receive the following error:
/bin/sh: build: command not found

My package.json is as follows for the macOS dmg target:
"build": { "dmg": { "contents": [ { "x": 130, "y": 220, }, { "x": 410, "y": 220, "type": "link", "path": "/Applications" } ] } }

Are there additional configuration steps that I'm missing? I'm getting the same error when removing the dmg build and simply doing a "mac": { "target": "pkg" } instead.

Most helpful comment

They removed/changed the build script, you will just have to change your call to ./node_modules/.bin/electron-builder build + [your options]

All 2 comments

They removed/changed the build script, you will just have to change your call to ./node_modules/.bin/electron-builder build + [your options]

Awesome that did the trick, thanks for the help!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NPellet picture NPellet  路  3Comments

iklemm picture iklemm  路  3Comments

jhg picture jhg  路  3Comments

JohnWeisz picture JohnWeisz  路  3Comments

StickNitro picture StickNitro  路  3Comments