The short answer
Short answer: both routes need signing and packaging on macOS. Website distribution is signed with a Developer ID certificate and notarized. The Mac App Store needs a MAS build with the sandbox enabled, signed with a different set of certificates and packaged as a pkg for upload, and the auto-update module is unavailable.
Which steps require macOS
What must be on macOS
- Signing and packaging for both routes. The docs for Electron Forge's pkg maker state that a pkg can only be built on macOS machines, when targeting the
darwinormasplatform. - Uploading the pkg with Transporter. Apple describes Transporter as a macOS app.
What you can do in a browser
- Register the App ID and create certificates and provisioning profiles in the developer account.
- Create the app record in App Store Connect, fill in the metadata, and submit for review.
Look first at what the MAS version loses
Electron's Mac App Store submission guide lists the limitations of the MAS build:
- The
autoUpdaterandcrashReportermodules are disabled. Updates are handled by the store instead. - Video capture may not work on some machines, certain accessibility features may be unavailable, and the app is not aware of DNS changes.
- The sandbox strictly limits the resources the app can access.
If your app depends on these abilities, first weigh whether the store is worth it, or run both routes in parallel.
How to do it on a remote Mac
Route one: distribute a dmg from your website
Sign with a Developer ID Application certificate and notarize, as described in Electron signing and notarization. Give users the dmg to download, and keep the zip as well for auto-update. This route is not restricted by the sandbox and keeps full functionality.
Route two: prepare the certificates for MAS
Per Electron's guide:
Apple Distribution: signs the app itself and is required for store submission. An app signed with it cannot be run as-is. It only works after Apple re-signs it and it is downloaded from the store.Mac Installer Distribution: signs the installer package (pkg).Apple Development: only for development and testing on your own machine. It needs a provisioning profile and only runs on machines registered in that profile.
Install all of the certificates into the remote Mac's keychain.
Use the MAS build and enable the sandbox
The guide states that apps running under the App Sandbox must use Electron's MAS build, and the standard darwin build fails to launch inside the sandbox. In Forge, you produce this kind of package by specifying
masas the platform.The entitlements file must contain
com.apple.security.app-sandbox. Addcom.apple.security.network.clientif you need network access, and the matchingfiles.user-selectedentitlement if users need to pick files through a dialog. The guide says@electron/osx-signautomatically adds the basic entitlements the sandbox requires and writesElectronTeamIDinto Info.plist.Sign and generate the pkg
- Electron Forge: set
identitytoApple DistributioninosxSign, then generate the installer package with@electron-forge/maker-pkg. - electron-builder:
npx electron-builder --mac mas. Per its MAS docs, the output is a pkg. The provisioning profile and entitlements files are specified under thesignobject of themasconfiguration. Use themas-devtarget for testing on your own machine.
The MAS version is not notarized. electron-builder's target comparison table says this is handled by the store.
- Electron Forge: set
Upload with Transporter and submit for review
First create the app record in App Store Connect, with the Bundle ID matching the app's
appId. Install Transporter on the remote Mac, sign in, and deliver the pkg (the verification code goes to your own devices). Once processing finishes, submit for review in App Store Connect.Run the sandboxed version locally before uploading
Sandbox violations are a common reason for rejection. Sign a development version with an Apple Development certificate plus a provisioning profile (electron-builder's
mas-dev), actually run it on the remote Mac, and click through reading and writing files, network access and opening external links one by one. Before using the provisioning profile, this Mac has to be registered in the device list in the developer account.
FAQ
Can one codebase produce both versions?
Yes. The two versions differ in build target, certificates and entitlements files, not in app code. In the code, just add conditional checks around modules such as autoUpdater that are unavailable under MAS.
The MAS version crashes on launch. What do I check first?
First confirm you are using the MAS build and not the standard build, which is the cause the guide calls out by name. Then look at the entitlements files: helper executables inside the app bundle need to inherit entitlements (com.apple.security.inherit), and launch also fails without that.
Do I need to notarize the pkg for upload myself?
No. Notarization is for software signed with Developer ID and distributed outside the store. Packages submitted to the store are checked by Apple during processing and review.
Can you handle the store submission for me?
No. We provide a remote Mac located in the United States and an admin account, and you can sign in with your own dedicated Apple Account. We do not sign or submit on your behalf, and we do not guarantee that review will pass. The usage rules are in the help center.
Related
- How do I sign and notarize an Electron app for macOS without a Mac?
- Can I build a macOS installer for an Electron app on Windows or Linux?
- How do I build a universal Electron app for both Intel and Apple silicon Macs?
- How do I publish an app to the App Store without a Mac?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support