Update: Resolved
The issue was the DMG format. electron-builder on Apple Silicon creates APFS
DMGs by default, and Apple's notary service has a known issue with APFS
DMGs (Apple DTS: r. 134264492).
APFS DMG → stuck "In Progress" forever
HFS+ DMG → Accepted in 2 minutes
Fix: create the DMG manually with HFS+ instead of letting electron-builder
create it with APFS.
hdiutil create -size 500m -fs HFS+ -volname "MyApp" /tmp/temp.dmg
hdiutil attach /tmp/temp.dmg -readwrite
cp -R "MyApp.app" "/Volumes/MyApp/"
ln -s /Applications "/Volumes/MyApp/Applications"
hdiutil detach "/Volumes/MyApp"
hdiutil convert /tmp/temp.dmg -format UDZO -o MyApp.dmg
xcrun notarytool submit MyApp.dmg --keychain-profile "profile" --wait
xcrun stapler staple MyApp.dmg
Topic:
Code Signing
SubTopic:
Notarization
Tags: