forked from killvxk/PyDefender-EvilBytecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile.bat
More file actions
29 lines (25 loc) · 779 Bytes
/
compile.bat
File metadata and controls
29 lines (25 loc) · 779 Bytes
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
@echo off
echo Building PyDefender executable...
REM --onefile: bundle everything into a single exe
REM --noconsole: no console window will be shown when the exe is run
REM --name: the name of the final executable
REM --paths: tells pyinstaller where to look for modules
pyinstaller --onefile --noconsole --name PyDefender ^
--paths "AntiDebug" ^
--paths "AntiVirtulization" ^
--paths "CriticalProcess" ^
main.py
if %errorlevel% neq 0 (
echo [ERROR] PyInstaller failed with error code %errorlevel%.
pause
exit /b %errorlevel%
)
echo.
echo Cleaning up build files...
if exist "build" rmdir /s /q build
if exist "PyDefender.spec" del "PyDefender.spec"
echo.
echo Build complete!
echo The executable can be found in the 'dist' directory.
echo.
pause