Files
proxmox/scripts/xdc-zero/clone-and-build-xdc-relayer.sh
defiQUG dbd517b279 Sync workspace: config, docs, scripts, CI, operator rules, and submodule pointers.
- Update dbis_core, cross-chain-pmm-lps, explorer-monorepo, metamask-integration, pr-workspace/chains
- Omit embedded publish git dirs and empty placeholders from index

Made-with: Cursor
2026-04-12 06:12:20 -07:00

23 lines
749 B
Bash
Executable File

#!/usr/bin/env bash
# Shallow-clone and build XinFin XDC-Relayer (Node 20+ recommended).
# Usage: XDC_RELAYER_DIR=~/projects/XDC-Relayer bash scripts/xdc-zero/clone-and-build-xdc-relayer.sh
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
DEST="${XDC_RELAYER_DIR:-${HOME}/projects/XDC-Relayer}"
REPO_URL="${XDC_RELAYER_REPO_URL:-https://github.com/XinFinOrg/XDC-Relayer.git}"
if [[ ! -d "$DEST/.git" ]]; then
git clone --depth 1 "$REPO_URL" "$DEST"
fi
cd "$DEST"
command -v npm >/dev/null 2>&1 || {
echo "ERROR: npm required" >&2
exit 1
}
npm install
npm run build
echo "OK: built $DEST — run: cd $DEST && npm run start (needs .env + Redis per upstream README)"