1
0
Fork 0
mirror of https://github.com/fastogt/pyfastogt synced 2025-03-09 23:38:55 +00:00
This commit is contained in:
topilski 2017-03-23 07:45:39 +03:00
parent 2eb5e72dad
commit 96fa274aa7

View file

@ -68,7 +68,7 @@ class SupportedPlatform(object):
SUPPORTED_PLATFORMS = [SupportedPlatform('linux', [Architecture('x86_64', 64, '/usr/local'),
Architecture('i386', 32, '/usr/local'),
Architecture('arm', 32, '/usr/local')], ['DEB', 'RPM', 'TGZ']),
Architecture('armv7l', 32, '/usr/local')], ['DEB', 'RPM', 'TGZ']),
SupportedPlatform('windows',
[Architecture('x86_64', 64, '/mingw64'), Architecture('i386', 32, '/mingw32')],
['NSIS', 'ZIP']),
@ -116,7 +116,10 @@ def get_os():
def get_arch_name():
return platform.processor()
arch = platform.machine()
if arch == 'AMD64':
return 'x86_64'
return arch
def get_supported_platform_by_name(platform):