mirror of
https://github.com/im-tomu/fomu-workshop.git
synced 2024-09-20 03:10:12 +00:00
get_toolchain: Fix platform detection (#582)
This commit is contained in:
parent
a4c866f35c
commit
51203d7f5e
@ -18,11 +18,11 @@ else:
|
|||||||
|
|
||||||
def platform():
|
def platform():
|
||||||
if 'linux' in sys.platform:
|
if 'linux' in sys.platform:
|
||||||
return 'linux'
|
return 'Linux'
|
||||||
elif 'darwin' in sys.platform:
|
elif 'darwin' in sys.platform:
|
||||||
return 'mac'
|
return 'macOS'
|
||||||
elif 'win' in sys.platform or 'msys' in sys.platform:
|
elif 'win' in sys.platform or 'msys' in sys.platform:
|
||||||
return 'windows'
|
return 'Windows'
|
||||||
else:
|
else:
|
||||||
return sys.platform
|
return sys.platform
|
||||||
|
|
||||||
@ -108,14 +108,6 @@ def main(argv):
|
|||||||
plat = platform()
|
plat = platform()
|
||||||
print("Platform:", plat)
|
print("Platform:", plat)
|
||||||
|
|
||||||
if os.environ.get('CI', False):
|
|
||||||
platforms = {
|
|
||||||
"windows": "Windows",
|
|
||||||
"linux": "Linux",
|
|
||||||
"mac": "macOS"
|
|
||||||
}
|
|
||||||
plat = platforms[plat]
|
|
||||||
|
|
||||||
to_download = []
|
to_download = []
|
||||||
|
|
||||||
for asset in toolchain_data['assets']:
|
for asset in toolchain_data['assets']:
|
||||||
|
Loading…
Reference in New Issue
Block a user