File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
version = "9.8.3296"
8
8
9
+ arch = RbConfig ::CONFIG [ "host_cpu" ]
10
+ arm = arch =~ /arm|aarch64/i
11
+
9
12
if RbConfig ::CONFIG [ "host_os" ] =~ /darwin/i
10
- if RbConfig :: CONFIG [ "host_cpu" ] =~ / arm|aarch64/i
13
+ if arm
11
14
filename = "or-tools_arm64_macOS-14.1_cpp_v#{ version } .tar.gz"
12
15
checksum = "253efad127c55b78967e3e3a3b4a573f9da0a2562c4f33f14fbf462ca58448f7"
13
16
else
25
28
os = os_info [ "ID" ]
26
29
os_version = os_info [ "VERSION_ID" ]
27
30
28
- if os == "ubuntu" && os_version == "22.04"
31
+ if os == "ubuntu" && os_version == "22.04" && x86_64
29
32
filename = "or-tools_amd64_ubuntu-22.04_cpp_v#{ version } .tar.gz"
30
33
checksum = "2a332e95897ac6fc2cfd0122bcbc07cfd286d0f579111529cc99ac3076f5421a"
31
- elsif os == "ubuntu" && os_version == "20.04"
34
+ elsif os == "ubuntu" && os_version == "20.04" && ! arm
32
35
filename = "or-tools_amd64_ubuntu-20.04_cpp_v#{ version } .tar.gz"
33
36
checksum = "95789f8d93dfb298efecd1c0b888f9a148c011e1a20505b00c38452d68b01644"
34
- elsif os == "debian" && os_version == "11"
37
+ elsif os == "debian" && os_version == "11" && ! arm
35
38
filename = "or-tools_amd64_debian-11_cpp_v#{ version } .tar.gz"
36
39
checksum = "e7dd81b13c53c739447254b8836ece55f8b92a107688cc9f3511705c9962fa2d"
37
- elsif os == "centos" && os_version == "7"
40
+ elsif os == "centos" && os_version == "7" && ! arm
38
41
filename = "or-tools_amd64_centos-7_cpp_v#{ version } .tar.gz"
39
42
checksum = "d9f193572d3a38b3062ae4cb89afc654e662eb734a9361b1575d649b9530cf60"
40
43
else
41
44
platform =
42
45
if Gem . win_platform?
43
46
"Windows"
44
47
elsif os || os_version
45
- "#{ os } #{ os_version } "
48
+ "#{ os } #{ os_version } ( #{ arch } ) "
46
49
else
47
50
"Unknown"
48
51
end
You can’t perform that action at this time.
0 commit comments