[go: nahoru, domu]

Skip to content

Commit

Permalink
feat: add support for osx aarch_64
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinshrm committed Mar 16, 2022
1 parent 5dd5239 commit 70202c8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions protocw
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,15 @@ then
else
osname="linux"
fi
osarch=$(uname -m)
if [ $(uname -m) = "arm64" ]
then
osarch="aarch_64"
println "aarch_64 detected; make sure protoc_version >= 3.17.3 for osx and >= 3.10.0 for linux"
else
osarch=$(uname -m)
fi

print "Downloading Protoc $protoc_version... "
print "Downloading Protoc version: $protoc_version-$osname-$osarch... "
curl "https://repo1.maven.org/maven2/com/google/protobuf/protoc/$protoc_version/protoc-$protoc_version-$osname-$osarch.exe" -o $filename --fail --silent

last_error=$?
Expand Down

0 comments on commit 70202c8

Please sign in to comment.