Delete setup-pretendo.sh

This commit is contained in:
Matthew Lopez 2022-06-28 19:10:51 -04:00 committed by GitHub
parent 6d16a7ae21
commit 675754d68c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,53 +0,0 @@
# Set up some ANSI codes
reset="\e[0m"
title="\e[1;34m"
subtitle="\e[36m"
warning="\e[33mWarning: "
error="\e[1;31mError: "
# Header message
echo -e $title"Simple Pretendo Network setup script"$reset
printf '\e]2;Pretendo setup\a'
echo
# Check that required depedencies are installed
echo -e $subtitle"Git version:"$reset
git --version || echo -e $error"Git is not installed."
echo -e $subtitle"Node.js version:"$reset
node --version || echo -e $error"Node.js is not installed."
echo -e $subtitle"npm version:"$reset
npm --version || echo -e $error"NPM is not installed."
echo -e $subtitle"Go version:"$reset
go version || echo -e $error"Go is not installed."
echo -e $subtitle"MongoDB version:"$reset
mongod --version || echo -e $error"MongoDB is not installed."
# Make sure that a Pretendo folder does not already exist
if [ -d ./PretendoNetwork ]; then
echo -e $warning"The \"PretendoNetwork\" folder already exists! It will be deleted if you continue!"$reset
fi
# Everything should be set up fine now. It is time to actually start the setup.
echo -e "\n"
echo -e $title"Ready to start downloading the Pretendo files!"$reset
read -p "Would you like to continue? [y/N] " -r
if [[ ! $REPLY =~ ^[Yy]$ ]]; then exit 1; fi
# Create the PretendoNetwork folder
rm -rf PretendoNetwork
mkdir PretendoNetwork
cd PretendoNetwork
# Start by downloading the relevant GitHub repositories
echo -e $title"Cloning the server repositories from GitHub"$reset
repositories=("account" "BOSS" "friends-authentication" "friends-secure" "Grove" "juxt-web" "mk7-authentication" "mk7-secure" "mk8-authentication" "mk8-secure" "olv-api" "SOAP" "super-mario-maker-authentication" "super-mario-maker-secure" "wiiu-chat-authentication" "wiiu-chat-secure")
for repo in ${repositories[@]}; do
echo -e $subtitle"Cloning repository PretendoNetwork/$repo"$reset
git clone --depth 1 https://github.com/PretendoNetwork/$repo
done
# Then download the Go libraries
echo -e $title"Downloading the Go libraries"$reset
go get github.com/PretendoNetwork/nex-go
go get github.com/PretendoNetwork/nex-protocols-go
go get go.mongodb.org/mongo-driver