You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo>&2"warning: neither of 'dpkg' or 'apk' found, falling back to 'uname'"
16
+
arch="$tryArch"
17
+
18
+
os="$(uname -o 2>/dev/null || :)"
19
+
case"$os"in
20
+
Cygwin | Msys)
21
+
# TODO support non-amd64 Windows
22
+
found 'windows-amd64'
23
+
;;
24
+
esac
25
+
fi
26
+
27
+
case"$arch"in
28
+
amd64 | x86_64) found 'amd64' ;;
29
+
arm64 | aarch64) found 'arm64v8' ;;
30
+
armel) found 'arm32v5' ;;
31
+
armv7) found 'arm32v7' ;;
32
+
i[3456]86 | x86) found 'i386' ;;
33
+
mips64el) found 'mips64le' ;; # TODO "uname -m" is just "mips64" (which is also "apk --print-arch" on big-endian MIPS) so we ought to disambiguate that somehow
34
+
ppc64el | ppc64le) found 'ppc64le' ;;
35
+
riscv64) found 'riscv64' ;;
36
+
s390x) found 's390x' ;;
37
+
38
+
armhf)
39
+
if [ -s /etc/os-release ] && id="$(grep -Em1 '^ID=[^[:space:]]+$' /etc/os-release)";then
40
+
eval"$id"
41
+
case"${ID:-}"in
42
+
alpine | raspbian) found 'arm32v6' ;;
43
+
*) found 'arm32v7' ;;
44
+
esac
45
+
else
46
+
echo>&2"warning: '$arch' is ambiguous (and '/etc/os-release' is missing 'ID=xxx'), assuming 'arm32v6' for safety"
0 commit comments