Skip to content

Commit

Permalink
Fix x86 architecture detection
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
gismo112 authored and emilsvennesson committed Nov 4, 2017
1 parent d53301b commit 7d58822
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
'x86_64':
{
'Linux': 'x64',
'Windows': 'ia32',
'Windows': 'x64',
'Darwin': 'x64'
},
'x86':
Expand Down
6 changes: 6 additions & 0 deletions lib/inputstreamhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ def _inputstream_version(self):
def _arch(self):
"""Map together and return the system architecture."""
arch = platform.machine()
if arch == 'AMD64':
arch_bit = platform.architecture()[0]
if arch_bit == '32bit':
arch = 'x86'
elif arch_bit == '64bit':
arch = 'x86_64'
if arch in config.X86_MAP:
return config.X86_MAP[arch]
elif 'armv' in arch:
Expand Down

0 comments on commit 7d58822

Please sign in to comment.