mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-12 02:06:59 +00:00
HOTFIX: win setup fail fast. Fixes #1352
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user