From 619b9562431be620a25512d2d9cb34bf45820fee Mon Sep 17 00:00:00 2001 From: Isaaker <77550577+Isaaker@users.noreply.github.com> Date: Tue, 5 Dec 2023 10:21:12 +0100 Subject: [PATCH] Creating installer --- install.py | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ requirements.txt | 3 +++ 2 files changed, 51 insertions(+) create mode 100644 install.py create mode 100644 requirements.txt diff --git a/install.py b/install.py new file mode 100644 index 0000000..4da883a --- /dev/null +++ b/install.py @@ -0,0 +1,48 @@ +import os +import sys +import time + +# GhostSim auto-installer script +# Created by: Isaaker + +print (""" + ██████╗ ██╗ ██╗ ██████╗ ███████╗████████╗███████╗██╗███╗ ███╗ ██╗███╗ ██╗███████╗████████╗ █████╗ ██╗ ██╗ ███████╗██████╗ +██╔════╝ ██║ ██║██╔═══██╗██╔════╝╚══██╔══╝██╔════╝██║████╗ ████║ ██║████╗ ██║██╔════╝╚══██╔══╝██╔══██╗██║ ██║ ██╔════╝██╔══██╗ +██║ ███╗███████║██║ ██║███████╗ ██║ ███████╗██║██╔████╔██║ ██║██╔██╗ ██║███████╗ ██║ ███████║██║ ██║ █████╗ ██████╔╝ +██║ ██║██╔══██║██║ ██║╚════██║ ██║ ╚════██║██║██║╚██╔╝██║ ██║██║╚██╗██║╚════██║ ██║ ██╔══██║██║ ██║ ██╔══╝ ██╔══██╗ +╚██████╔╝██║ ██║╚██████╔╝███████║ ██║ ███████║██║██║ ╚═╝ ██║ ██║██║ ╚████║███████║ ██║ ██║ ██║███████╗███████╗███████╗██║ ██║ + ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝ ╚══════╝╚═╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝ + """) +print ("GhostSim auto-installer script") +print ("Created by: Isaaker") +print ("") +print ("[For more info visit: https://github.com/Isaaker/Ghost_Simulator_ES/wiki]") + +time.sleep(1) + +print ("") +print ("Obtaining the requirements...") +file_requirements="./requirements.txt" +if os.path.exists('file_requirements'): + if file_requirements.redable(): + open("file_requirements", mode="r") + else: + print ("""Requirements file is not redable: You can fix this re-downloading the code: + > git clone https://github.com/Isaaker/piscinadeentropia.git + > wget https://github.com/Isaaker/piscinadeentropia/archive/refs/heads/main.zip + > curl -O https://github.com/Isaaker/piscinadeentropia/archive/refs/heads/main.zip""") + exit (1) +else: + print ("""Requirements file not found: You can fix this re-downloading the code: + > git clone https://github.com/Isaaker/piscinadeentropia.git + > wget https://github.com/Isaaker/piscinadeentropia/archive/refs/heads/main.zip + > curl -O https://github.com/Isaaker/piscinadeentropia/archive/refs/heads/main.zip""") + exit (1) + +print ("") +print ("Checking for compliance with requirements...") +readLine + + +print ("Checking for Python3 version...") + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..fd45dc9 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +python3=3.12.0 +pip3=23.3.1 +Flask=3.0.0