We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e162f73 commit 19f3dc2Copy full SHA for 19f3dc2
build-pkgs.sh
@@ -43,7 +43,13 @@ if [ "Windows_NT" = "${OS}" ]; then ## windows compatibility shims
43
else
44
PLATFORM=$(uname -s | tr 'A-Z' 'a-z')
45
fi
46
-ARCH=$(uname -m)
+# On Windows, use MSYSTEM_CARCH if set (correctly identifies ARM64)
47
+# Otherwise fall back to uname -m (works correctly on Linux/macOS)
48
+if [ "Windows_NT" = "${OS}" ] && [ -n "${MSYSTEM_CARCH}" ]; then
49
+ ARCH="${MSYSTEM_CARCH}"
50
+else
51
+ ARCH=$(uname -m)
52
+fi
53
DDVER=$(grep __version__ dnsdiag/shared.py | awk -F\' '{print $2}')
54
[ -z "${DDVER}" ] && die "Failed to extract version number from dnsdiag/shared.py"
55
PKG_NAME="dnsdiag-${DDVER}.${PLATFORM}-${ARCH}-bin"
0 commit comments