{"action":"created","issue":{"url":"https://api.github.com/repos/brrd/Abricotine/issues/6","repository_url":"https://api.github.com/repos/brrd/Abricotine","labels_url":"https://api.github.com/repos/brrd/Abricotine/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/brrd/Abricotine/issues/6/comments","events_url":"https://api.github.com/repos/brrd/Abricotine/issues/6/events","html_url":"https://github.com/brrd/Abricotine/issues/6","id":134652359,"number":6,"title":"Linux 32 error: wrong ELF class: ELFCLASS64","user":{"login":"fiatjaf","id":1653275,"avatar_url":"https://avatars.githubusercontent.com/u/1653275?v=3","gravatar_id":"","url":"https://api.github.com/users/fiatjaf","html_url":"https://github.com/fiatjaf","followers_url":"https://api.github.com/users/fiatjaf/followers","following_url":"https://api.github.com/users/fiatjaf/following{/other_user}","gists_url":"https://api.github.com/users/fiatjaf/gists{/gist_id}","starred_url":"https://api.github.com/users/fiatjaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fiatjaf/subscriptions","organizations_url":"https://api.github.com/users/fiatjaf/orgs","repos_url":"https://api.github.com/users/fiatjaf/repos","events_url":"https://api.github.com/users/fiatjaf/events{/privacy}","received_events_url":"https://api.github.com/users/fiatjaf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-18T18:10:35Z","updated_at":"2016-02-19T11:32:22Z","closed_at":null,"body":"Unzipped the ia32 version and run on terminal. See if that helps trace something:\r\n\r\n```shell\r\nfiatjaf@mises ~/D/Abricotine-linux-ia32> ./Abricotine \r\nA JavaScript error occurred in the main process\r\nUncaught Exception:\r\nError: /home/fiatjaf/Desktop/Abricotine-linux-ia32/resources/app.asar.unpacked/node_modules/spellchecker/build/Release/spellchecker.node: wrong ELF class: ELFCLASS64\r\n    at Error (native)\r\n    at Object.module.(anonymous function) (ATOM_SHELL_ASAR.js:137:20)\r\n    at Object.module.(anonymous function) [as .node] (ATOM_SHELL_ASAR.js:148:18)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at Object.<anonymous> (/home/fiatjaf/Desktop/Abricotine-linux-ia32/resources/app.asar/node_modules/spellchecker/lib/spellchecker.js:2:16)\r\n    at Module._compile (module.js:434:26)\r\n    at Object.Module._extensions..js (module.js:452:10)\r\n^C⏎                                                                                                                                                                                                                               \r\n\r\nfiatjaf@mises ~/D/Abricotine-linux-ia32> node --version\r\nv5.4.0\r\nfiatjaf@mises ~/D/Abricotine-linux-ia32> cat version \r\nv0.35.1                                           \r\n```"},"comment":{"url":"https://api.github.com/repos/brrd/Abricotine/issues/comments/186180398","html_url":"https://github.com/brrd/Abricotine/issues/6#issuecomment-186180398","issue_url":"https://api.github.com/repos/brrd/Abricotine/issues/6","id":186180398,"user":{"login":"brrd","id":7335302,"avatar_url":"https://avatars.githubusercontent.com/u/7335302?v=3","gravatar_id":"","url":"https://api.github.com/users/brrd","html_url":"https://github.com/brrd","followers_url":"https://api.github.com/users/brrd/followers","following_url":"https://api.github.com/users/brrd/following{/other_user}","gists_url":"https://api.github.com/users/brrd/gists{/gist_id}","starred_url":"https://api.github.com/users/brrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brrd/subscriptions","organizations_url":"https://api.github.com/users/brrd/orgs","repos_url":"https://api.github.com/users/brrd/repos","events_url":"https://api.github.com/users/brrd/events{/privacy}","received_events_url":"https://api.github.com/users/brrd/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T11:32:22Z","updated_at":"2016-02-19T11:32:22Z","body":"> Did you use https://github.com/maxogden/electron-packager?\r\n\r\nYes, I do : https://github.com/brrd/Abricotine/blob/master/scripts/packager.js#L4\r\n\r\n> I don't even know if it is possible to build for 32 bit from a 64 bit computer. Is it? What about the contrary?\r\n\r\nI guess (?) it can work for most apps in the 2 ways since `electron-packager` just packages `electron-prebuilt` binaries with the provided app. But Abricotine uses the `node-spellchecker` module which is a native module and (as I understand it) needs to be rebuilt on each platform and electron version : https://github.com/atom/electron/blob/master/docs/tutorial/using-native-node-modules.md\r\n\r\nRight know this is automatically performed when you `npm install` the app (https://github.com/brrd/Abricotine/blob/master/package.json#L20) but the distributed ia32 packages may not work.\r\n\r\nNow I wonder how to distribute the app for each platform (win, osx and linux x 32 and 64 bit = 6 packages) without having to deal with 6 OS. I need to investigate this."}}