Files
eagle0/scripts/install_grpc_unity_dlls.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

25 lines
1.1 KiB
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 --spawn_strategy=local \
src/main/protobuf/net/eagle0/eagle/api:eagle_protos.dll
$BAZEL build --spawn_strategy=local \
src/main/protobuf/net/eagle0/shardok/api:shardok_protos.dll
$BAZEL build --spawn_strategy=local \
src/main/protobuf/net/eagle0/common:shardok_internal_interface.dll
mkdir -p src/main/csharp/net/eagle0/clients/unity/eagle0/Assets/Plugins/Eagle0Protos/
rm -rf src/main/csharp/net/eagle0/clients/unity/eagle0/Assets/Plugins/Eagle0Protos/*.dll
cp -f bazel-bin/src/main/protobuf/net/eagle0/eagle/api/eagle_protos.dll src/main/csharp/net/eagle0/clients/unity/eagle0/Assets/Plugins/Eagle0Protos/
cp -f bazel-bin/src/main/protobuf/net/eagle0/shardok/api/shardok_protos.dll src/main/csharp/net/eagle0/clients/unity/eagle0/Assets/Plugins/Eagle0Protos/
cp -f bazel-bin/src/main/protobuf/net/eagle0/common/shardok_internal_interface.dll src/main/csharp/net/eagle0/clients/unity/eagle0/Assets/Plugins/Eagle0Protos/