add relay-tester scripts

This commit is contained in:
2025-09-10 14:23:57 +01:00
parent c9314bdbd0
commit faad7ddc93
2 changed files with 37 additions and 0 deletions

19
scripts/relaytester-install.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
## rust must be installed
if ! command -v "cargo" &> /dev/null; then
echo "rust and cargo is not installed."
echo "run this command to install:"
echo
echo "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh"
exit
else
echo "cargo is installed."
fi
rm -rf relay-tester
git clone https://github.com/mikedilger/relay-tester.git
cd relay-tester
cargo build -r
cp target/release/relay-tester $GOBIN/
cd ..
rm -rf relay-tester