mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 21:35:42 +00:00
* use env bash instead of /bin/bash * check for variable existence Former-commit-id: 25a00ebffec9ba8c820be29c9adfd0a4c0f9cb29
20 lines
514 B
Bash
Executable File
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
|