diff options
Diffstat (limited to 'gui/scripts')
| -rwxr-xr-x | gui/scripts/build-proto.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gui/scripts/build-proto.sh b/gui/scripts/build-proto.sh index f2ee78e3af..5f8724a68c 100755 --- a/gui/scripts/build-proto.sh +++ b/gui/scripts/build-proto.sh @@ -5,7 +5,8 @@ set -eu SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "$SCRIPT_DIR" -PLATFORM="$(uname -s)-$(uname -m)" +ARCH="$(uname -m)" +PLATFORM="$(uname -s)-${ARCH}" MANAGEMENT_INTERFACE_PROTO_BUILD_DIR=${MANAGEMENT_INTERFACE_PROTO_BUILD_DIR:-} NODE_MODULES_DIR="$(cd ../node_modules/.bin && pwd)" PROTO_DIR="../../mullvad-management-interface/proto" @@ -21,14 +22,14 @@ fi mkdir -p $DESTINATION_DIR mkdir -p $TYPES_DESTINATION_DIR -if [[ "${PLATFORM}" == "Darwin-arm64" ]]; then +if [[ "${ARCH,,}" == "arm64" || "${ARCH,,}" == "aarch64" ]]; then if [[ -n "${MANAGEMENT_INTERFACE_PROTO_BUILD_DIR}" ]]; then cp $MANAGEMENT_INTERFACE_PROTO_BUILD_DIR/*.js $DESTINATION_DIR cp $MANAGEMENT_INTERFACE_PROTO_BUILD_DIR/*.ts $TYPES_DESTINATION_DIR else - >&2 echo "Building management interface proto files on Apple Silicon is not supported" + >&2 echo "Building management interface proto files on aarch64 is not supported" >&2 echo "(see https://github.com/grpc/grpc-node/issues/1497)." - >&2 echo "Please build the proto files on another platform using build_mi_proto.sh script," + >&2 echo "Please build the proto files on another platform using build-proto.sh script," >&2 echo "and set MANAGEMENT_INTERFACE_PROTO_BUILD_DIR environment variable to the directory of the build." exit 1 fi |
