Open mclaveria120 opened 1 year ago
sudo apt install libssl-dev -y sudo apt install -y openssl
if ! command -v curl >/dev/null 2>&1; then sudo apt install -y curl fi
if ! command -v grpcurl >/dev/null 2>&1; then curl -sSL "https://github.com/fullstorydev/grpcurl/releases/download/v1.8.6/grpcurl_1.8.6_linux_x86_64.tar.gz" | sudo tar -xz -C /usr/local/bin fi
if ! command -v go >/dev/null 2>&1; then sudo apt install -y golang-go fi
if ! command -v git >/dev/null 2>&1; then sudo apt install -y git fi
if ! command -v make >/dev/null 2>&1; then sudo apt install -y --reinstall make fi
if ! command -v rustc >/dev/null 2>&1; then
#sudo rustup component add rustfmt
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs > rustup.sh && sh rustup.sh -y
sudo apt install -y build-essential gcc
sudo apt install -y protobuf-compiler
source $HOME/.cargo/env
fi
if ! command -v cargo >/dev/null 2>&1; then sudo apt install -y cargo fi
echo "****Installations****" grpcurl -version go version git --version make -v 2>&1 | head -n 1 curl -v 2>&1 | head -n 1 rustc --version cargo --version openssl version echo "**" cd mkdir test cd test git clone https://github.com/zingolabs/zingolib cd zingolib cargo build --release
!/bin/bash
sudo apt update && upgrade
sudo apt install libssl-dev -y sudo apt install -y openssl
Install curl if not installed
if ! command -v curl >/dev/null 2>&1; then sudo apt install -y curl fi
Install grpcurl if not installed
if ! command -v grpcurl >/dev/null 2>&1; then curl -sSL "https://github.com/fullstorydev/grpcurl/releases/download/v1.8.6/grpcurl_1.8.6_linux_x86_64.tar.gz" | sudo tar -xz -C /usr/local/bin fi
Install curl if not installed
if ! command -v go >/dev/null 2>&1; then sudo apt install -y golang-go fi
Install git if not installed
if ! command -v git >/dev/null 2>&1; then sudo apt install -y git fi
Install make if not installed
if ! command -v make >/dev/null 2>&1; then sudo apt install -y --reinstall make fi
Install rust and components if not installed
if ! command -v rustc >/dev/null 2>&1; then
sudo apt install -y rustc
fi
if ! command -v cargo >/dev/null 2>&1; then
sudo apt install -y cargo
fi
if ! command -v java >/dev/null 2>&1; then sudo apt install -y openjdk-11-jdk sudo snap install gradle --classic sudo snap install eclipse --classic fi
echo "****Installations****" grpcurl -version go version git --version make -v 2>&1 | head -n 1 curl -v 2>&1 | head -n 1 rustc --version cargo --version openssl --version java --version 2>&1 | head -n 2 gradle --version 2>&1 | head -n 2 echo "**" cd rm -rf $HOME/test mkdir $HOME/test cd $HOME/test git clone https://github.com/zingolabs/zingolib echo "Zinglib repo donwloaded" git clone https://github.com/zcash/lightwalletd echo "Zinglib repo donwloaded" cd $HOME/test/zingolib && cargo build --release cd $HOME/test/lightwalletd && make
sudo $HOME/test/zingolib/./target/release/zingo-cli --data-dir .
cd test/lightwalletd && ./lightwalletd --darkside-very-insecure --no-tls-very-insecure --data-dir . --log-file /dev/stdout