forked from krishpranav/webfr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.py
34 lines (28 loc) · 841 Bytes
/
install.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
#!/usr/bin/env python3
# imports
import os
import time
Y = (['yes', 'y', 'YES', 'Y'])
N = (['no', 'n', 'NO', 'N'])
def install():
os.system('clear')
print("INSTALLING")
time.sleep(1)
os.system('go get -u github.com/json-iterator/go')
os.system('go get -u github.com/valyala/fasthttp')
os.system('go get -u github.com/valyala/tcplisten')
os.system('go get -u github.com/krishpranav/webfr')
time.sleep(1)
print("WEBFR has been installed successfully")
time.sleep(1)
print("check out: https://github.com/krishpranav/webfr for more details")
def main():
choice = input("You sure to install webfr in your system Y / N: ")
if choice in Y:
install()
elif choice in N:
print('EXITING')
os.exit(0)
if __name__ == "__main__":
print("WEBFR INSTALLER")
main()