Fix the support for Mac App Store #5205

merged 2 commits into from Apr 19, 2016


None yet

2 participants

zcbenz commented Apr 19, 2016 edited

By using the SandBox Policy Language, I finally got Electron sandboxed without rewriting Chromium's IPC system. But to achieve this we have added an temporary-exception entry to the entitlements, which may make the app fail to pass the review of Mac App Store.

Also another problem is the renderer process unable to read the files under, because the renderer process belongs to the Electron, which is not the same with I work around it by making a symbol link to Framework.framework/Resources, so app now lives under the Electron Framework.framework and the sandbox is happy with that. This might be a breaking change for some apps.

Anyway this PR should be able to fix the support for Mac App Store, /cc @kevinsawicki.

Close #3871.

zcbenz added some commits Apr 19, 2016
@zcbenz zcbenz Update the MAS submission guide bd406ab
@zcbenz zcbenz Update the codesign code for latest Xcode
zcbenz commented Apr 19, 2016

Hmm actually I think we don't even need to modify the code, we were just not using the correct entitlements when sandboxing the app.

@zcbenz zcbenz merged commit 34ee298 into master Apr 19, 2016

7 of 8 checks passed

continuous-integration/travis-ci/pr The Travis CI build is in progress
electron-linux-arm Build #3091519 succeeded in 81s
electron-linux-ia32 Build #3091520 succeeded in 83s
electron-linux-x64 Build #3091521 succeeded in 112s
electron-mas-x64 Build #897 succeeded in 4 min 51 sec
electron-osx-x64 Build #914 succeeded in 5 min 22 sec
electron-win-ia32 Build #3091522 succeeded in 165s
electron-win-x64 Build #3091523 succeeded in 165s
@zcbenz zcbenz deleted the mas-fix branch Apr 19, 2016

Awesome work @zcbenz ❤️ 💚 💜 💙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment