-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathgsi.py
30 lines (27 loc) · 1.27 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
#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# (c) TechyMinati ( Aryan Sinha ) <sinha.aryan03@gmail.com>
import os
import sys
print ("==========================================")
print (" Welcome to sGSI Building Script ")
print ("==========================================")
n=input("Press Y to Continue, N to Exit: ")
if (n=="Y") or (n=="y") :
print("Cloning ErfanGSIs Sourcecode")
print (" Warning: this is a Fork of ErfanGSIs, Adapted for our Usage")
os.system('mkdir gsi-working-dir')
os.system('cd gsi-working-dir')
os.system('git clone --recurse-submodules https://github.com/CyberJalagam/ErfanGSIs')
os.system('sudo chmod -R 777 ErfanGSIs')
print ("Initialising enviroment for GSI Building")
os.system('cd ErfanGSIs && sudo bash setup.sh')
print("==========================================")
print(" Ready to Build GSI")
print("==========================================")
os.system('sudo bash assets/gsi.sh')
print("==========================================")
print(" GSI Build Successfully, find it On gsi-working-dir/ErfanGSIs/output ")
print("==========================================")
else:
print(" Thanks , If you want to restart GSI Building, re-run this script")