{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/6167","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/6167/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/6167/comments","events_url":"https://api.github.com/repos/electron/electron/issues/6167/events","html_url":"https://github.com/electron/electron/issues/6167","id":161519250,"number":6167,"title":"Can't load another ASAR from command line if app.asar is in the resources folder","user":{"login":"baconface","id":4763342,"avatar_url":"https://avatars.githubusercontent.com/u/4763342?v=3","gravatar_id":"","url":"https://api.github.com/users/baconface","html_url":"https://github.com/baconface","followers_url":"https://api.github.com/users/baconface/followers","following_url":"https://api.github.com/users/baconface/following{/other_user}","gists_url":"https://api.github.com/users/baconface/gists{/gist_id}","starred_url":"https://api.github.com/users/baconface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baconface/subscriptions","organizations_url":"https://api.github.com/users/baconface/orgs","repos_url":"https://api.github.com/users/baconface/repos","events_url":"https://api.github.com/users/baconface/events{/privacy}","received_events_url":"https://api.github.com/users/baconface/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-21T19:26:15Z","updated_at":"2016-06-23T04:58:00Z","closed_at":"2016-06-22T01:11:11Z","body":"* Electron version: 1.2.3\r\n* Operating system: Windows 8.1\r\n* Issue: If app.asar is present in the resources folder the executable can no longer load a different ASAR via command line.\r\n\r\nWhat we are looking to do have our main project in app.asar. But have it be able to download additional ASAR's if needed and launch from them. Ideally we would like multiple ASARs instead of multiple builds of Electron to reduce file size and so we only need to maintain one Electron install.\r\n\r\nWe wish to load them in something along the lines of:\r\n```javascript\r\napp.relaunch({\r\n  args: 'resources/another_app.asar'\r\n});\r\napp.exit(0);\r\n```\r\nFrom our testing we have found the above works _only_ if there is no app.asar present. If there is it loads in app.asar by default. Without it the behavior works as expected."},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/227950091","html_url":"https://github.com/electron/electron/issues/6167#issuecomment-227950091","issue_url":"https://api.github.com/repos/electron/electron/issues/6167","id":227950091,"user":{"login":"zcbenz","id":639601,"avatar_url":"https://avatars.githubusercontent.com/u/639601?v=3","gravatar_id":"","url":"https://api.github.com/users/zcbenz","html_url":"https://github.com/zcbenz","followers_url":"https://api.github.com/users/zcbenz/followers","following_url":"https://api.github.com/users/zcbenz/following{/other_user}","gists_url":"https://api.github.com/users/zcbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/zcbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcbenz/subscriptions","organizations_url":"https://api.github.com/users/zcbenz/orgs","repos_url":"https://api.github.com/users/zcbenz/repos","events_url":"https://api.github.com/users/zcbenz/events{/privacy}","received_events_url":"https://api.github.com/users/zcbenz/received_events","type":"User","site_admin":true},"created_at":"2016-06-23T04:58:00Z","updated_at":"2016-06-23T04:58:00Z","body":"You can just call `require`, like what the default app did."}}
{"actor":{"display_login":"zcbenz"}}