From c3b8e145645a411662854aa1aa8ef540a3543846 Mon Sep 17 00:00:00 2001 From: Collin Jackson Date: Thu, 5 Sep 2024 01:41:12 -0700 Subject: [PATCH] Initial install script --- public/install.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/public/install.sh b/public/install.sh index e3a1aba..280fb88 100755 --- a/public/install.sh +++ b/public/install.sh @@ -1,3 +1,12 @@ #!/bin/sh -echo "Hello world!" +rustc --version || curl https://sh.rustup.rs -sSf | sh +NEXUS_HOME=$HOME/.nexus +if [ -d "$NEXUS_HOME" ]; then + echo "$NEXUS_HOME exists. Updating."; + (cd $NEXUS_HOME && git pull) +else + git clone git@github.com:nexus-xyz/network-cli --branch @collinjackson/proving $NEXUS_HOME +fi + +(cd $NEXUS_HOME/clients/cli && cargo run --release --bin prover -- dev.orchestrator.nexus.xyz)