Skip to content

Commit

Permalink
chore: add 32bit yara
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo23x0 committed Nov 11, 2020
1 parent c09033e commit 4ce152e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build_dist.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ ECHO Create Temp directory for some downloads
MKDIR temp
:: Get YARA
ECHO Downloading YARA ...
powershell -executionpolicy bypass -Command "(New-Object System.Net.WebClient).DownloadFile('https://github.com/VirusTotal/yara/releases/download/v4.0.2/yara-v4.0.2-1347-win64.zip', '.\temp\yara.zip')"
powershell -executionpolicy bypass -Command "Expand-Archive -Path .\temp\yara.zip -DestinationPath .\tools -Force"
powershell -executionpolicy bypass -Command "(New-Object System.Net.WebClient).DownloadFile('https://github.com/VirusTotal/yara/releases/download/v4.0.2/yara-v4.0.2-1347-win32.zip', '.\temp\yara32.zip')"
powershell -executionpolicy bypass -Command "(New-Object System.Net.WebClient).DownloadFile('https://github.com/VirusTotal/yara/releases/download/v4.0.2/yara-v4.0.2-1347-win64.zip', '.\temp\yara64.zip')"
powershell -executionpolicy bypass -Command "Expand-Archive -Path .\temp\yara32.zip -DestinationPath .\tools -Force"
powershell -executionpolicy bypass -Command "Expand-Archive -Path .\temp\yara64.zip -DestinationPath .\tools -Force"
DEL /F .\tools\yarac32.exe
DEL /F .\tools\yarac64.exe
:: Get Visual C++ Runtime
ECHO Downloading Visual C++ Runtime ...
Expand Down Expand Up @@ -41,6 +44,7 @@ XCOPY yara\*.* Raccine\yara\
XCOPY yara\in-memory\*.* Raccine\yara\in-memory
ECHO Copying yara binaries to new folder ...
XCOPY tools\yara64.exe Raccine\yara\
XCOPY tools\yara32.exe Raccine\yara\

:: Visual C++ Runtime
ECHO Copying VC++ runtimt to dist folder
Expand Down
1 change: 1 addition & 0 deletions install-raccine.bat
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ COPY RaccineSettings.exe "%ProgramFiles%\Raccine\"
COPY RaccineRulesSync.exe "%ProgramFiles%\Raccine\"
:: Raccine Program Files
COPY Raccine%ARCH%.exe "%ProgramFiles%\Raccine\Raccine.exe"
COPY yara\yara32.exe "%ProgramFiles%\Raccine\"
COPY yara\yara64.exe "%ProgramFiles%\Raccine\"
:: YARA Rules
MKDIR "%ProgramFiles%\Raccine\yara"
Expand Down

0 comments on commit 4ce152e

Please sign in to comment.