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
25 lines
1.1 KiB
Bash
Executable File
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/
|