-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathwindows.bat
50 lines (36 loc) · 1.34 KB
/
windows.bat
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
::
:: windows.bat
::
:: litefuzz project
::
:: setup and install deps on Windows (10 tested + Py2)
::
:: note: run as Administrator and in the litefuzz root directory
::
@echo off
echo installing litefuzz deps and setup on Windows...
echo.
::
:: install chocolatey package manager
::
:: source: https://stackoverflow.com/questions/52578270/install-python-with-cmd-or-powershell
::
echo ^> fetching chocolatey package manager
echo.
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
echo.
echo ^> installing choco packages
choco install -y python2 gnuwin32-coreutils.install diffutils gsudo make mingw openssl windows-sdk-10-version-2004-windbg
echo.
echo ^> installing python dependencies
C:\Python27\Scripts\pip.exe install -r requirements\requirements-py2.txt
echo.
echo ^> disabling windows error reporting
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "Disable-WindowsErrorReporting"
echo.
echo ^> making test crash apps
cd test\windows
make
cd ..\..
echo.
echo finished!