How to publish Electron app to Mac app store?

Viewed 286

I'm trying to distribute my Electron app to Mac App Store and I've followed so many solutions but unexpectedly this is not working at all.

Electron: 9.2.0 (latest stable version)
Electron-builder: 22.8.0 (latest version)

This is the entitlements for my application.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>com.apple.security.app-sandbox</key>
    <true/>
    <key>com.apple.security.files.user-selected.read-write</key>
    <true/>
    <key>com.apple.security.cs.allow-jit</key>
    <true/>
    <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
    <true/>
    <key>com.apple.security.cs.allow-dyld-environment-variables</key>
    <true/>
    <key>com.apple.security.device.audio-input</key>
    <true/>
  </dict>
</plist>

Once I remove this com.apple.security.app-sandbox then app is working really well. But once I've uploaded package to app store then it's rejecting this due to not enabling the sandbox mode.

But sadly, whenever I enable this sandbox then app stops working. Please provide me any advice.

0 Answers
Related