#!/usr/bin/env bash set -exo pipefail if [[ -n "$BAZEL_OUTPUT_BASE" ]]; then BAZEL="bazel --output_base=${BAZEL_OUTPUT_BASE}" else echo "no output base set, defaulting to off" BAZEL="bazel" fi $BAZEL build \ @grpc_unity3d//:grpc_unity3d_plugin_tar # Exclude the meta files because we want the ones in the project tar xf bazel-bin/external/grpc_unity3d/grpc_unity3d_plugin_tar.tar \ --exclude='*.meta' \ -C src/main/csharp/net/eagle0/clients/unity/eagle0/Assets ./scripts/install_grpc_unity_dlls.sh