Skip to content

Commit

Permalink
Creating installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaaker committed Dec 5, 2023
1 parent 2ddc90a commit 619b956
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
48 changes: 48 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
@@ -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...")

3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
python3=3.12.0
pip3=23.3.1
Flask=3.0.0

0 comments on commit 619b956

Please sign in to comment.