Skip to content
Snippets Groups Projects
Commit d8e3a425 authored by cyberta's avatar cyberta
Browse files

fix build_core.sh build script for macOSX

parent 91361cfa
No related branches found
No related tags found
1 merge request!8Macosx builds
...@@ -21,8 +21,14 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then ...@@ -21,8 +21,14 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
EXPECTED_FP=87fc728c9c731e2f74e4a999ef53cf07302d7ed3504b0839027bd9c10edaa3fd EXPECTED_FP=87fc728c9c731e2f74e4a999ef53cf07302d7ed3504b0839027bd9c10edaa3fd
elif [[ "$OSTYPE" == "darwin"* ]]; then elif [[ "$OSTYPE" == "darwin"* ]]; then
# Mac OSX # Mac OSX
GO_VERSION=go1.17.10.darwin-arm64 ARCH=`uname -a | rev | cut -d " " -f 1 | rev`
if [[ "$ARCH" = "x86_64" ]]; then
GO_VERSION=go1.17.10.darwin-amd64
EXPECTED_FP=84979d5985c70cee6f303050a7e811440aad7f304efdf28665b200f096b01945 EXPECTED_FP=84979d5985c70cee6f303050a7e811440aad7f304efdf28665b200f096b01945
else
GO_VERSION=go1.17.10.darwin-arm64
EXPECTED_FP=32098bea40117ea1ec23e7124cd188db6bdddd0ea41e2ec9bea3ba35a487e39c
fi
else else
echo "$OSTYPE is currently not supported." echo "$OSTYPE is currently not supported."
exit 1 exit 1
...@@ -38,7 +44,7 @@ else ...@@ -38,7 +44,7 @@ else
if [[ "$OSTYPE" == "linux-gnu"* ]]; then if [[ "$OSTYPE" == "linux-gnu"* ]]; then
ACTUAL_FP=`sha256sum $GO_VERSION.tar.gz | cut -d " " -f1` ACTUAL_FP=`sha256sum $GO_VERSION.tar.gz | cut -d " " -f1`
else else
ACTUAL_FP=`shasum -a 512256 $GO_VERSION.tar.gz | cut -d " " -f1` ACTUAL_FP=`shasum -a 256 $GO_VERSION.tar.gz | cut -d " " -f1`
fi fi
if [[ ! $ACTUAL_FP == $EXPECTED_FP ]] if [[ ! $ACTUAL_FP == $EXPECTED_FP ]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment