mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-13 03:08:40 -04:00
1aa4084762
# Description of Changes * Small cleanups in `tools/check-diff.sh` * Use `tools/check-diff.sh` wherever appropriate * Simplify the `sdks/csharp/tools~/gen-*.sh` files after the repo merge # API and ABI breaking changes None. # Expected complexity level and risk 1 # Testing - [x] CI still passes Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
18 lines
633 B
Bash
Executable File
18 lines
633 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ueo pipefail
|
|
|
|
SDK_PATH="$(dirname "$0")/.."
|
|
SDK_PATH="$(realpath "$SDK_PATH")"
|
|
STDB_PATH="$SDK_PATH/../.."
|
|
|
|
cargo build --manifest-path "$STDB_PATH/crates/standalone/Cargo.toml"
|
|
|
|
cargo run --manifest-path $STDB_PATH/crates/client-api-messages/Cargo.toml --example get_ws_schema |
|
|
cargo run --manifest-path $STDB_PATH/crates/cli/Cargo.toml -- generate -l csharp --namespace SpacetimeDB.ClientApi \
|
|
--module-def \
|
|
-o $SDK_PATH/src/SpacetimeDB/ClientApi/.output
|
|
|
|
mv $SDK_PATH/src/SpacetimeDB/ClientApi/.output/Types/* $SDK_PATH/src/SpacetimeDB/ClientApi/
|
|
rm -rf $SDK_PATH/src/SpacetimeDB/ClientApi/.output
|