mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 00:16:57 +00:00
Map Windows ARM64 correctly (system='Windows', machine='ARM64', bitness='64bit')
Relates to #479
This commit is contained in:
1 parent
b299422699
commit
7b65979393
1 file changed
+9
-1
@@ -281,7 +281,15 @@ class PlatformUtils:
|
||||
if system == "Windows" and machine == "":
|
||||
machine = cls._determine_windows_machine_type()
|
||||
system_map = {"Windows": "win", "Darwin": "osx", "Linux": "linux"}
|
||||
machine_map = {"AMD64": "x64", "x86_64": "x64", "i386": "x86", "i686": "x86", "aarch64": "arm64", "arm64": "arm64"}
|
||||
machine_map = {
|
||||
"AMD64": "x64",
|
||||
"x86_64": "x64",
|
||||
"i386": "x86",
|
||||
"i686": "x86",
|
||||
"aarch64": "arm64",
|
||||
"arm64": "arm64",
|
||||
"ARM64": "arm64",
|
||||
}
|
||||
if system in system_map and machine in machine_map:
|
||||
platform_id = system_map[system] + "-" + machine_map[machine]
|
||||
if system == "Linux" and bitness == "64bit":
|
||||
|
||||
Reference in new issue
Block a user