-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
setup.py
53 lines (49 loc) · 1.77 KB
/
setup.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
40
41
42
43
44
45
46
47
48
49
50
51
52
import platform
import sys
import os
print('Welcome to the osripper setup utility')
print("""Python version: %s
system: %s
machine: %s
platform: %s
version: %s
""" % (
sys.version.split('\n'),
platform.system(),
platform.machine(),
platform.platform(),
platform.version(),
))
if platform.system() == "Darwin":
print("MacOS detected... Ultimate Compatibility")
ngchoice=input('Do you want to install with ngrok support? (y/n): ')
if ngchoice=='y' or 'Y':
print('You will need your ngrok Api key (not the tunnel key)')
print('You can get this key for free from here https://dashboard.ngrok.com/api')
print('\n')
ngrok_auth = input('Please enter your key: ')
os.system("pip3 install -r requirements.txt")
with open('creds', 'w+') as creds:
creds.write(str(ngrok_auth))
creds.close
ngrok_activation='ngrok authtoken '+ngrok_auth
os.system(ngrok_activation)
if platform.system() == "Windows":
print("This version does NOT support windows. Please use an older version.")
sys.exit(1)
elif platform.system() == "Linux":
print("Linux Detected ... Great")
ngchoice=input('Do you want to install with ngrok support? (y/n): ')
if ngchoice=='y' or 'Y':
print('You will need your ngrok Api key (not the tunnel key)')
print('You can get this key for free from here https://dashboard.ngrok.com/api')
print('\n')
ngrok_auth = input('Please enter your key: ')
os.system("sudo apt install patchelf")
os.system("pip3 install -r requirements.txt")
with open('creds', 'w+') as creds:
creds.write(str(ngrok_auth))
creds.close
ngrok_activation='ngrok authtoken '+ngrok_auth
os.system(ngrok_activation)
os.system("pip3 install -r requirements.txt")