diff options
| author | David Lönnhager <david.l@mullvad.net> | 2022-08-16 16:24:42 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2022-08-23 13:38:31 +0200 |
| commit | a7a9afca4025aabcb857fa771b6f4a3710f0959f (patch) | |
| tree | 089ec4e8b5df3e7c40ae36789bb5f4970f409c07 /gui/scripts | |
| parent | 1543186aa19dff4e5b462ca754e34e1f9b089016 (diff) | |
| download | mullvadvpn-a7a9afca4025aabcb857fa771b6f4a3710f0959f.tar.xz mullvadvpn-a7a9afca4025aabcb857fa771b6f4a3710f0959f.zip | |
Fail when running build-proto.sh on arm64 in general
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 |
