{"action":"closed","issue":{"url":"https://api.github.com/repos/electron/electron/issues/6044","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/6044/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/6044/comments","events_url":"https://api.github.com/repos/electron/electron/issues/6044/events","html_url":"https://github.com/electron/electron/issues/6044","id":160213674,"number":6044,"title":"Detect os platform version x64 vs. ia32 [Linux, Win]","user":{"login":"vojtatranta","id":4154045,"avatar_url":"https://avatars.githubusercontent.com/u/4154045?v=3","gravatar_id":"","url":"https://api.github.com/users/vojtatranta","html_url":"https://github.com/vojtatranta","followers_url":"https://api.github.com/users/vojtatranta/followers","following_url":"https://api.github.com/users/vojtatranta/following{/other_user}","gists_url":"https://api.github.com/users/vojtatranta/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtatranta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtatranta/subscriptions","organizations_url":"https://api.github.com/users/vojtatranta/orgs","repos_url":"https://api.github.com/users/vojtatranta/repos","events_url":"https://api.github.com/users/vojtatranta/events{/privacy}","received_events_url":"https://api.github.com/users/vojtatranta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-14T15:37:22Z","updated_at":"2016-06-15T01:04:14Z","closed_at":"2016-06-15T01:04:14Z","body":"Hi and thank you,\r\nwe were releasing our product just as 32bits version. Now we want to ship x64 too.\r\n\r\nWe want to notify users with x64 capable computer that they should rather use x64 app.\r\nHowever, it seems it is really complicated to detect PC architecture in Electron.\r\nSince `require('os').arch()` cares about node version we have no other way to reliably determine whether user's computer is x64 capable or not, because Electron runs it's own nodejs. So on x64 capable machine I get from `require('os').arch() -> //ia32`, because Electron runs 32bits nodejs (build is done with 32bits, we would like to notify user that x64 is available).\r\n\r\nIs there any way how can I detect it? Something like:\r\n`const arch = require('electron').arch()`?\r\n\r\nThanks"}}
{"actor":{"display_login":"zcbenz"}}