HOTFIX: win setup fail fast. Fixes #1352

This commit is contained in:
Ajin Abraham
2020-04-12 13:14:15 -04:00
parent 0aaa7fff73
commit 9ba79892e5
2 changed files with 24 additions and 15 deletions
+13 -4
View File
@@ -30,19 +30,28 @@ where python >nul 2>&1 && (
)
echo [INSTALL] Using venv
rmdir "venv" /q /s
rmdir "venv" /q /s >nul 2>&1
python -m venv ./venv
.\venv\Scripts\activate
python -m pip install --upgrade pip
set LIB=C:\Program Files\OpenSSL-Win64\lib;%LIB%
set INCLUDE=C:\Program Files\OpenSSL-Win64\include;%INCLUDE%
echo [INSTALL] Installing dex enabled yara-python
pip install --upgrade wheel
rmdir /q /s yara-python
pip wheel --wheel-dir=yara-python --build-option="build" --build-option="--enable-dex" git+https://github.com/VirusTotal/[email protected]
rmdir /q /s yara-python >nul 2>&1
pip wheel --wheel-dir=yara-python --build-option="build" --build-option="--enable-dex" "git+https://github.com/VirusTotal/[email protected]"
pip install --no-index --find-links=yara-python yara-python
rmdir /q /s yara-python
rmdir /q /s yara-python >nul 2>&1
pip install apkid==2.1.0
echo [INSTALL] Running APKiD Test
apkid DynamicAnalyzer\tools\onDevice\mobsf_agents\ClipDump.apk
if %errorlevel% neq 0 (
echo [ERROR] APKiD installation failed. Have you installed Visual Studio BuildTools?
pause
exit /b %errorlevel%
)
echo [INSTALL] Installing Requirements
pip install -r requirements.txt