-
-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare for Mac App Store submission #903
Conversation
After building this, I tried opening the
|
This is actually the expected behavior. When you sign your MAS app for production, you won't be able to open it locally. You can test the MAS build by using a development provisioning profile and setting |
Ah ok. Makes sense. I tried uploading it to the App Store using Application Loader, but got an error:
|
Do you have a provisioning profile for distribution in the MAS in the project root? |
No, I have it in my keychain. |
I'm not sure if that's supported. From the electron-osx-sign GitHub page:
|
Looks like you can have different icons per platform, but not only for the MAS build: https://www.electron.build/icons.html |
@samuelmeuli electron-builder has some hooks though, where you could do some custom logic to replace the icon. |
This might work, it's quite hacky though. You'll still need to add an |
I'll have to close this. Sorry for the wasted time, @samuelmeuli... Apple rejected the submission in May. I sent them a well-written appeal, but they have still not responded, and it doesn't like like they ever will. They also published this today, so looks like they don't want web wrapping apps in the App Store. |
Looking for some guidance on this. My app works totally fine as a .dmg but the .pkg I created to submit to the Mac App Store is not working. I created the .pkg with the production provisioning profile, used App Uploader and it was submitted for review. However, the review was rejected because App could not be launched at startup. I tried to test the app locally but it wouldn't work, which I read is expected behavior. So I created a testing provisioning profile by using a development provisioning profile and setting "type": "development" in the MAS configuration of electron-builder as suggested in this thread. However, the mas app still does not open whereas the .dmg works great. The crash report specifies code sign as the reason it's not working even in the test. What can I look at to determine what's going wrong? |
Hi @sindresorhus,
This PR should fix the issues you encountered when submitting the app to the Mac App Store (#88).
The reason the app crashed on launch is the following bug in Electron related to instance locks: electron/electron#15958. I've therefore disabled the instance lock for the MAS build.
I also added some missing configuration for
electron-builder
to thepackage.json
file. The signed app now works as expected for me.