Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
made pages cleaner
Browse files Browse the repository at this point in the history
clear screen added
added clear screen function
  • Loading branch information
mickoissicko committed Jan 26, 2024
1 parent 94a7b67 commit 0dec698
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
5 changes: 4 additions & 1 deletion archlinux/setup/arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def clear_screen():
print("Ok, but serious... not Linux, Darwin, or Windows?! Wuh da heellll.?!")

def launch_ussr():
clear_screen()

if os.path.exists("token.txt"):
with open("token.txt", "r") as file:
autk = file.read().strip()
Expand Down Expand Up @@ -55,7 +57,8 @@ def launch_ussr():
os.system("bash start.sh")

def config_ngrok():

clear_screen()

os.chdir('archlinux/server-arch/config')

if not os.path.isfile('conf.txt'):
Expand Down
16 changes: 16 additions & 0 deletions launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,19 @@
import os
import webbrowser
import subprocess
import platform

def clear_screen():
system = platform.system().lower()

if 'windows' in system:
os.system('cls')
else:
print("Average Hello Kitty OS user:")
print("Ok, but serious... not Linux, Darwin, or Windows?! Wuh da heellll.?!")

def setup_dependencies_arch():
clear_screen()
choice = input("\nDo you have the dependencies set up already? [y/n] ")
if choice.lower() == 'n':
os.chdir('archlinux/')
Expand All @@ -13,6 +24,7 @@ def setup_dependencies_arch():
os.chdir('..')

def setup_dependencies_win():
clear_screen()
choice = input("\nDo you have the dependencies set up already? [y/n] ")
if choice.lower() == 'n':
os.chdir('windows/')
Expand All @@ -23,15 +35,19 @@ def setup_dependencies_win():
os.chdir('..')

def ussr_for_arch():
clear_screen()
os.system('python archlinux/setup/arch.py')

def ussr_for_win():
clear_screen()
os.system('python windows/setup/win.py')

def mc_server():
clear_screen()
os.system('python prerequisites/config.py')

def main_menu():
clear_screen()
print("SETUP PAGE -- LAUNCHER, MAIN MENU")
print("[1] Dependency setup for Windows")
print("[2] Dependency setup for Arch")
Expand Down
4 changes: 3 additions & 1 deletion windows/setup/win.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
import webbrowser
import platform

def clear_screen():
system = platform.system().lower()
Expand All @@ -19,6 +20,7 @@ def main_menu():
print("[2] Use Ngrok")

def launch_ussr():
clear_screen()

path = input("\nDid you configure paths? [y/n]")

Expand Down Expand Up @@ -64,7 +66,7 @@ def launch_ussr():
os.system('cmd /c start.bat')

def config_ngrok():

clear_screen()

os.chdir('windows/server-windows/config')

Expand Down

0 comments on commit 0dec698

Please sign in to comment.