Define HOST_ARCH in check-environment.sh.
This commit is contained in:
parent
77a8cc6499
commit
f43859a3b7
@ -20,17 +20,6 @@ source ./check-environment.sh || exit 1
|
||||
|
||||
ANDROID_SDK_ROOT="$(cd "$(dirname -- "$ANDROID_SDK_ROOT")" >/dev/null; pwd -P)/$(basename -- "$ANDROID_SDK_ROOT")"
|
||||
|
||||
if [[ "$OS_NAME" == "linux" ]] ; then
|
||||
HOST_ARCH="linux-x86_64"
|
||||
elif [[ "$OS_NAME" == "mac" ]] ; then
|
||||
HOST_ARCH="darwin-x86_64"
|
||||
elif [[ "$OS_NAME" == "win" ]] ; then
|
||||
HOST_ARCH="windows-x86_64"
|
||||
else
|
||||
echo "Error: unsupported OS_NAME."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f $OPENSSL.tar.gz ] ; then
|
||||
echo "Downloading OpenSSL sources..."
|
||||
$WGET https://github.com/openssl/openssl/archive/refs/tags/$OPENSSL.tar.gz || exit 1
|
||||
|
@ -1,13 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# The script checks that all needed tools are installed and sets OS_NAME and WGET variables
|
||||
# The script checks that all needed tools are installed and sets OS_NAME, HOST_ARCH, and WGET variables
|
||||
|
||||
if [[ "$OSTYPE" == "linux"* ]] ; then
|
||||
OS_NAME="linux"
|
||||
HOST_ARCH="linux-x86_64"
|
||||
elif [[ "$OSTYPE" == "darwin"* ]] ; then
|
||||
OS_NAME="mac"
|
||||
HOST_ARCH="darwin-x86_64"
|
||||
elif [[ "$OSTYPE" == "msys" ]] ; then
|
||||
OS_NAME="win"
|
||||
HOST_ARCH="windows-x86_64"
|
||||
else
|
||||
echo "Error: this script supports only Bash shell on Linux, macOS, or Windows."
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user