forked from techyminati/python_codes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gsi.py
39 lines (39 loc) · 1.59 KB
/
gsi.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# (c) TechyMinati ( Aryan Sinha ) <[email protected]>
import os
import sys
print ("==========================================")
print (" Welcome to sGSI Building Script ")
print ("==========================================")
n=input("Press Y to Proceed, N to Abort: ")
if (n=="Y") or (n=="y") :
print("Cloning ErfanGSIs Sourcecode")
print (" Warning: this is a Fork of ErfanGSIs, Adapted for our Usage")
os.system('git clone --recurse-submodules https://github.com/sinhaaryan03/ErfanGSIs')
os.system('sudo chmod -R 777 ErfanGSIs')
import time
print ("Initialising enviroment for GSI Building")
time.sleep(5)
print ("Enviroment Initialised")
os.system('cd ErfanGSIs && sudo bash setup.sh')
print("==========================================")
print(" Are you ready to Build GSI?")
print("==========================================")
os.system('sudo bash assets/gsi.sh')
n=input("Press Y to Proceed, N to Abort: ")
if (n=="Y") or (n=="y") :
import time
print("==========================================")
print(" Initialising to Build GSI")
print("==========================================")
time.sleep(5)
print("==========================================")
print(" GSI Build Successfully, find it On ErfanGSIs/output ")
print("==========================================")
else:
import time
time.sleep(5)
print("Thanks for using the Tool")
print("If you want to restart GSI Building")
print("re-run this script")