File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 10
10
import xml .etree .ElementTree as ET
11
11
12
12
KIOTA_OS_NAMES = {"Windows" : "win" , "Darwin" : "osx" , "Linux" : "linux" }
13
- KIOTA_ARCH_NAMES = {"32bit" : "x86" , "64bit" : "x64" }
13
+ KIOTA_ARCH_NAMES = {
14
+ "x86_64" : "x64" ,
15
+ "amd64" : "x64" ,
16
+ "i386" : "x86" ,
17
+ "x86" : "x86" ,
18
+ "x86_64" : "x64" ,
19
+ "amd64" : "x64" ,
20
+ "aarch64" : "arm64" ,
21
+ "arm64" : "arm64" ,
22
+ }
14
23
15
24
16
25
def generate_kiota_client_files (setup_kwargs ):
@@ -19,14 +28,12 @@ def generate_kiota_client_files(setup_kwargs):
19
28
print ("Unsupported operating system." )
20
29
exit (1 )
21
30
22
- kiota_arch_name = KIOTA_ARCH_NAMES .get (platform .architecture ()[0 ], None )
31
+ machine = platform .machine ().lower ()
32
+ kiota_arch_name = KIOTA_ARCH_NAMES .get (machine , None )
23
33
if kiota_arch_name is None :
24
34
print ("Unsupported architecture." )
25
35
exit (1 )
26
36
27
- if platform .processor ()[0 ] == "arm" and kiota_arch_name == "x64" :
28
- kiota_arch_name = "arm64"
29
-
30
37
kiota_release_name = f"{ kiota_os_name } -{ kiota_arch_name } .zip"
31
38
# Detecting the Kiota version from a .csproj file so that it can be updated by automatic tool (e.g. Dependabot)
32
39
kiota_version = (
You can’t perform that action at this time.
0 commit comments