electron-builder
has a bug where the zip target fails to build a notarized executable for macOS Catalina.
Example Error
You're notarizing the build according to this guide: https://medium.com/@TwitterArchiveEraser/notarize-electron-apps-7a5f988406db
[app_root]
folder, run: electron-builder --publish always
. Wait for notarization to complete.dist/mac/[YourApp.app]
. (This can be scripted with 7zip
.)[YourApp]-${version}-mac.zip
. Overwrite the file with the same name in /dist
../node_modules/app-builder-bin/mac/app-builder blockmap -i dist/[YourApp]-${version}-mac.zip
to get update file info: size
, sha512
, blockMapSize
.dist/latest-mac.yml
with the info found from step 4.[YourApp]-${version}-mac.zip
and dist/latest-mac.yml
to S3/DigitalOcean/Wherever.At this point, you should have a working zip for macOS Catalina (10.15). Autoupdate should also work.