Skip to content
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

How to build an OSX app for both Non-Mac AppStore and for Mac AppStore? #361

Closed
hetal-patadia opened this issue Apr 26, 2016 · 5 comments
Closed

Comments

@hetal-patadia
Copy link

hetal-patadia commented Apr 26, 2016

Hi,

I would like to know as to how can I get the builds for both AppStore and non-AppStore version? Can I just provide different certificates link for CSC_LINK & CSC_INSTALLER_LINK as mentioned here: https://github.com/electron-userland/electron-builder/wiki/Code-Signing? But, then how can I get two artifacts out of that? Also, I want to know how should I provide my entitlements file for electron-builder to use?

Thanks in advance,
-Hetal

@develar
Copy link
Member

develar commented Apr 27, 2016

how should I provide my entitlements file for electron-builder to use?

develar/onshape-desktop-shell#3 (comment)

how can I get the builds for both AppStore and non-AppStore version?

#332 (comment) Will be fixed soon.

Duplicates #332

@develar develar closed this as completed Apr 27, 2016
@develar develar added the mac label Apr 27, 2016
@hetal-patadia
Copy link
Author

hetal-patadia commented Apr 28, 2016

I was able to resolve to get my app sandboxed by restarting my machine. I don't know why, but totally weird. Now, it is showing that my app is sandboxed.

However, when I start my app, its showing nothing but a spinner. My app gets hanged and is not responding anymore. Has anyone faced this issue before?

PS: I noticed that this is not due to the signing of the app, but its because of the entitlements file (plist file) mentioning that the app is sandboxed. Any ideas as to why the sandboxed app is not even starting completely?

screen shot 2016-04-27 at 6 13 47 pm

Thanks in advance...

@develar
Copy link
Member

develar commented Apr 28, 2016

by restarting my machine. I don't know why, but totally weird.
OS X bug, see electron/packager#323

Any ideas as to why the sandboxed app is not even starting completely?

Please open Console (OS X system app) -> All Messages to see errors.

@hetal-patadia
Copy link
Author

hetal-patadia commented Apr 28, 2016

Please open Console (OS X system app) -> All Messages to see errors.

4/27/16 10:30:00.325 PM taskgated[110]: no application identifier provided, can't use provisioning profiles [pid=4904]
4/27/16 10:30:00.000 PM kernel[0]: Sandbox: SampleApp(4904) deny file-read-data /
4/27/16 10:30:00.000 PM kernel[0]: Sandbox: SampleApp Helpe(4906) deny mach-lookup org.chromium.Chromium.rohitfork.4904
4/27/16 10:30:00.000 PM kernel[0]: Sandbox: SampleApp Helpe(4907) deny mach-lookup org.chromium.Chromium.rohitfork.4904
4/27/16 10:30:10.000 PM kernel[0]: Sandbox: SampleApp(4904) deny file-read-data /Users/hp011235/Library/Preferences/com.apple.symbolichotkeys.plist
4/27/16 10:30:54.994 PM com.apple.xpc.launchd[1]: (com.apple.WebKit.Networking.F5886699-8067-4CA8-AFC9-85E95424E390[1377]) Service exited with abnormal code: 1
4/27/16 10:30:55.032 PM com.apple.xpc.launchd[1]: (com.apple.WebKit.WebContent.C180C26E-6BB4-4D81-8393-DDE7AECD20FC[1378]) Service exited with abnormal code: 1

This is the error stack appearing in my Console.

@hetal-patadia
Copy link
Author

hetal-patadia commented Apr 28, 2016

Seems like its a known electron bug and here is the workaround.

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

No branches or pull requests

2 participants