Skip to content

Commit 75c75ea

Browse files
committed
Correctly select dotnet platform on arm-based macs
1 parent 3b1b3b4 commit 75c75ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

csharp/scripts/create-extractor-pack.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
66
dotnet_platform="linux-x64"
77
elif [[ "$OSTYPE" == "darwin"* ]]; then
88
platform="osx64"
9-
dotnet_platform="osx-x64"
9+
if [[ $(uname -m) == 'arm64' ]]; then
10+
dotnet_platform="osx-arm64"
11+
else
12+
dotnet_platform="osx-x64"
13+
fi
1014
else
1115
echo "Unknown OS"
1216
exit 1

0 commit comments

Comments
 (0)