{"action":"opened","issue":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3275","repository_url":"https://api.github.com/repos/electron-userland/electron-builder","labels_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3275/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3275/comments","events_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3275/events","html_url":"https://github.com/electron-userland/electron-builder/issues/3275","id":354014206,"node_id":"MDU6SXNzdWUzNTQwMTQyMDY=","number":3275,"title":"App doesn't work when the target is \"mas\" and some files are not signed","user":{"login":"oscarjiv91","id":4256218,"node_id":"MDQ6VXNlcjQyNTYyMTg=","avatar_url":"https://avatars1.githubusercontent.com/u/4256218?v=4","gravatar_id":"","url":"https://api.github.com/users/oscarjiv91","html_url":"https://github.com/oscarjiv91","followers_url":"https://api.github.com/users/oscarjiv91/followers","following_url":"https://api.github.com/users/oscarjiv91/following{/other_user}","gists_url":"https://api.github.com/users/oscarjiv91/gists{/gist_id}","starred_url":"https://api.github.com/users/oscarjiv91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscarjiv91/subscriptions","organizations_url":"https://api.github.com/users/oscarjiv91/orgs","repos_url":"https://api.github.com/users/oscarjiv91/repos","events_url":"https://api.github.com/users/oscarjiv91/events{/privacy}","received_events_url":"https://api.github.com/users/oscarjiv91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-25T13:54:34Z","updated_at":"2018-08-25T13:54:34Z","closed_at":null,"author_association":"NONE","body":"Hello. I'm using the v20.28.2 of electron builder. When I make a build for distribution to Mac App Store, using the Application Loader, the .app inside the \"mas\" folder throw this error when I try to open it:\r\n\r\n> LSOpenURLsWithRole() failed with error -10810 for the file /path/to/my_application.app\r\n\r\nAnd when I try to run directly from the binary I see this message in terminal and I can't find a way to debug it:\r\n\r\n> Killed: 9\r\n\r\nSetting the target to **.dmg** works well though. I have these certificates in my keychain:\r\n\r\n> 3rd Party Mac Developer Application: Company, Inc (xxxxxxxx)\r\n> 3rd Party Mac Developer Installer: Company, Inc (xxxxxxxx)\r\n> Developer ID Application: Company, Inc (xxxxxxxx)\r\n> Developer ID Installer: Company, Inc (xxxxxxxx)\r\n\r\nAlthough I can't open this .app, I tried to submit it using Application Loader. It uploaded successfuly after a few fixes with my certificates, but later I received an email from Apple saying that some .so files weren't signed. I have these .so files in the asar.unpack (only way to make it work). \r\n\r\nIs there a way that electron-builder can sign these files? Only some type of files are currently being signed?\r\n\r\nI also tried this approach:\r\n1. Added a script using 'afterSign' in package.json\r\n2. Signed manually those .so files like:\r\n\r\n> codesign --sign \"3rd Party Mac Developer Application: Company, Inc (xxxxxxxx)\" --force $path/to/the_file.so\r\n\r\nI still can't open the .app inside the \"mas\" folder. I submited to the App Store again but not receiving any email from them yet.\r\n\r\nAny ideas on how to solve it, or debug this?\r\n\r\nThis is my entitlements.mas.inherit.plist\r\n\r\n<img width=\"798\" alt=\"captura de pantalla 2018-08-25 a la s 09 51 00\" src=\"https://user-images.githubusercontent.com/4256218/44618897-b3a95500-a84c-11e8-8321-61eea00ead91.png\">\r\n\r\nAnd the entitlements.mas.plist (application-group is replaced by the actual application group)\r\n\r\n<img width=\"798\" alt=\"captura de pantalla 2018-08-25 a la s 09 50 48\" src=\"https://user-images.githubusercontent.com/4256218/44618892-aa1fed00-a84c-11e8-8984-83ef09607e73.png\">"}}
{"actor":{"display_login":"oscarjiv91"}}