Files
eagle0/scripts/install_grpc_unity3d_plugins.sh
T
adminandGitHub 3c400fb546 use newer bash (#977)
* use env bash instead of /bin/bash

* check for variable existence


Former-commit-id: 25a00ebffec9ba8c820be29c9adfd0a4c0f9cb29
2021-10-02 09:20:37 -07:00

20 lines
514 B
Bash
Executable File

#!/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