ceremonyclient/rpm/generate.sh
Cassandra Heart dbd95bd9e9
v2.1.0 (#439)
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete

* 2.1.0 main node rollup
2025-09-30 02:48:15 -05:00

15 lines
415 B
Bash
Executable File

#!/bin/bash
set -euxo pipefail
ROOT_DIR="${ROOT_DIR:-$( cd "$(dirname "$(realpath "$( dirname "${BASH_SOURCE[0]}" )")")" >/dev/null 2>&1 && pwd )}"
RUST_RPM_PACKAGE="$ROOT_DIR/crates/rpm"
BINDINGS_DIR="$ROOT_DIR/rpm"
# Build the Rust RPM package in release mode
cargo build -p rpm --release
# Generate Go bindings
pushd "$RUST_RPM_PACKAGE" > /dev/null
uniffi-bindgen-go src/lib.udl -o "$BINDINGS_DIR"/generated