{"action":"created","issue":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/377","repository_url":"https://api.github.com/repos/electron-userland/electron-builder","labels_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/377/comments","events_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/377/events","html_url":"https://github.com/electron-userland/electron-builder/issues/377","id":153082681,"number":377,"title":"Can't run app after installing from .dmg","user":{"login":"brrian","id":6050972,"avatar_url":"https://avatars.githubusercontent.com/u/6050972?v=3","gravatar_id":"","url":"https://api.github.com/users/brrian","html_url":"https://github.com/brrian","followers_url":"https://api.github.com/users/brrian/followers","following_url":"https://api.github.com/users/brrian/following{/other_user}","gists_url":"https://api.github.com/users/brrian/gists{/gist_id}","starred_url":"https://api.github.com/users/brrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brrian/subscriptions","organizations_url":"https://api.github.com/users/brrian/orgs","repos_url":"https://api.github.com/users/brrian/repos","events_url":"https://api.github.com/users/brrian/events{/privacy}","received_events_url":"https://api.github.com/users/brrian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-04T18:28:43Z","updated_at":"2016-05-04T18:34:19Z","closed_at":null,"body":"I am having issues installing the .dmg after downloading it. Following the instructions, I've been able to build and sign the app without any issues. When installing it locally or physically transferring the .dmg, it can install with no issues.\r\n\r\nHowever, after uploading it and then downloading it from another computer, I get the following error whenever I try to run the application after installing it:\r\n**\"MyApp\" is damaged and can't be opened. You should move it to the Trash.**\r\n\r\nIf I set my Gatekeeper settings to allow apps from anywhere, it runs without a hitch. After doing some digging, I think the problem is somehow related how the app is signed.\r\n\r\nRunning `codesign --verify --verbose \"MyApp.app\"` I get:\r\n```\r\nMyApp.app/: valid on disk\r\nMyApp.app/: satisfies its Designated Requirement\r\n```\r\n\r\nHowever `codesign --verify --verbose --deep \"MyApp.app\"` gets me:\r\n```\r\nMyApp.app/: a sealed resource is missing or invalid\r\nIn subcomponent: /MyApp.app/Contents/Frameworks/Squirrel.framework\r\nfile modified: /MyApp.app/Contents/Frameworks/Squirrel.framework/Versions/Current/Resources/ShipIt\r\n```\r\n\r\n`spctl --verbose --assess --type execute -v \"MyApp.app\"` returns a similar error.\r\n\r\nBuilding the .app with [electron-packager](https://github.com/electron-userland/electron-packager) seems to be okay though:\r\n```\r\nspctl --verbose --assess --type execute -v \"MyApp.app\"\r\nMyApp.app/: accepted\r\nsource=Developer ID\r\norigin=Developer ID Application: Name (xxxxxxxxxx)\r\n```\r\n\r\nI am distributing for outside the App Store. So far, I haven't really been able to find any solutions. Am I missing anything? Thanks!\r\n"},"comment":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/comments/216959139","html_url":"https://github.com/electron-userland/electron-builder/issues/377#issuecomment-216959139","issue_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/377","id":216959139,"user":{"login":"develar","id":350686,"avatar_url":"https://avatars.githubusercontent.com/u/350686?v=3","gravatar_id":"","url":"https://api.github.com/users/develar","html_url":"https://github.com/develar","followers_url":"https://api.github.com/users/develar/followers","following_url":"https://api.github.com/users/develar/following{/other_user}","gists_url":"https://api.github.com/users/develar/gists{/gist_id}","starred_url":"https://api.github.com/users/develar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/develar/subscriptions","organizations_url":"https://api.github.com/users/develar/orgs","repos_url":"https://api.github.com/users/develar/repos","events_url":"https://api.github.com/users/develar/events{/privacy}","received_events_url":"https://api.github.com/users/develar/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T18:34:19Z","updated_at":"2016-05-04T18:34:19Z","body":"> Building the .app with electron-packager seems to be okay though:\r\n\r\nSince 3.14.0 we use the same package to sign app. Please specify electron-builder version.\r\n\r\nHow do you specify your identity?"}}