File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ def current_os():
25
25
26
26
27
27
def current_arch ():
28
- if current_os () == 'linux' :
28
+ if current_os () == 'linux' or current_os () == 'macos' :
29
29
machine_id = os .uname ()[4 ]
30
- m = re .match (r'^(aarch64|armv[6-8])' , machine_id .strip ())
30
+ m = re .match (r'^(aarch64|armv[6-8]|arm64 )' , machine_id .strip ())
31
31
if m :
32
32
arch = m .group (1 )
33
33
if arch == 'aarch64' :
34
34
arch = 'armv8'
35
35
return arch
36
- return ( 'x64' if sys .maxsize > 2 ** 32 else 'x86' )
36
+ return 'x64' if sys .maxsize > 2 ** 32 else 'x86'
37
37
38
38
39
39
def current_platform ():
Original file line number Diff line number Diff line change 19
19
'windows-x64' : 'https://go.dev/dl/go1.21.5.windows-amd64.zip' ,
20
20
'windows-x86' : 'https://go.dev/dl/go1.21.5.windows-386.zip' ,
21
21
'macos-x64' : 'https://go.dev/dl/go1.21.5.darwin-amd64.tar.gz' ,
22
+ 'macos-armv8' : 'https://go.dev/dl/go1.21.5.darwin-arm64.tar.gz' ,
22
23
}
23
24
24
25
Original file line number Diff line number Diff line change 19
19
'windows-x64' : 'https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/OpenJDK8U-jdk_x64_windows_hotspot_8u242b08.zip' ,
20
20
'windows-x86' : 'https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/OpenJDK8U-jdk_x86-32_windows_hotspot_8u242b08.zip' ,
21
21
'macos-x64' : 'https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/OpenJDK8U-jdk_x64_mac_hotspot_8u242b08.tar.gz' ,
22
+ 'macos-armv8' : 'https://corretto.aws/downloads/resources/8.422.05.1/amazon-corretto-8.422.05.1-macosx-aarch64.tar.gz' ,
22
23
}
23
24
24
25
@@ -95,7 +96,7 @@ def install(self, env):
95
96
fetch_and_extract (url , filename , install_dir )
96
97
os .remove (filename )
97
98
98
- jdk_home = glob .glob (os .path .join (install_dir , 'jdk*' ))[0 ]
99
+ jdk_home = glob .glob (os .path .join (install_dir , '* jdk*' ))[0 ]
99
100
assert jdk_home
100
101
101
102
# OSX is special and has a Contents/Home folder inside the distro
You can’t perform that action at this time.
0 commit comments