f71176d1f6
- Version all crates at 1.0.7-r001 (tracking Salvium C++ 1.0.7)
- Source-available license: free for author/designees and non-commercial
use; annual commercial license required for any revenue-generating use
- Build scripts for Android/iOS/Linux/macOS/Windows producing both
libsalvium_crypto and libsalvium_ffi
- CI workflow publishes platform archives to salvium-rs-releases
- 23 new FFI functions: storage ops, address book, tx notes, attributes,
staked balance, key derivation, mnemonic
- Fix stake detection: count owned outputs regardless of spent state
- Auto-resume testnet integration tests from current chain height
27 lines
660 B
Bash
Executable File
27 lines
660 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build Salvium shared libraries for Linux (x86_64)
|
|
#
|
|
# Produces:
|
|
# prebuilt/linux-x86_64/libsalvium_crypto.so
|
|
# prebuilt/linux-x86_64/libsalvium_ffi.so
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
ROOT_DIR="$SCRIPT_DIR/.."
|
|
OUT_DIR="$ROOT_DIR/prebuilt/linux-x86_64"
|
|
|
|
echo "==> Building Salvium libraries for Linux x86_64..."
|
|
|
|
cargo build --release \
|
|
-p salvium-crypto \
|
|
-p salvium-ffi \
|
|
--manifest-path "$ROOT_DIR/Cargo.toml"
|
|
|
|
mkdir -p "$OUT_DIR"
|
|
cp "$ROOT_DIR/target/release/libsalvium_crypto.so" "$OUT_DIR/"
|
|
cp "$ROOT_DIR/target/release/libsalvium_ffi.so" "$OUT_DIR/"
|
|
|
|
echo "==> Done:"
|
|
ls -lh "$OUT_DIR/"*.so
|