peinjector/Makefile

32 lines
1.1 KiB
Makefile

dist\PEinjector.7z: src\main.py src\log.py src\action.py src\hook.pyw src\makelnk.py src\regwrite.py src\config.py src\loader.py src\utils.py root\VentoyAutoRun.bat
mkdir tmp\pkg\PEinjector\env
mkdir tmp\pkg\PEinjector\src
mkdir tmp\pkg\PEinjector\tool
xcopy root .\tmp\pkg /C /Y /E
xcopy env .\tmp\pkg\PEinjector\env /C /Y /E
xcopy src .\tmp\pkg\PEinjector\src /C /Y /E
xcopy tool .\tmp\pkg\PEinjector\tool /C /Y /E
rmdir /S /Q dist
mkdir dist
7z a -t7z dist\PEinjector.7z .\tmp\pkg\PEinjector -r -m0=BCJ -m1=LZMA:d=21 -ms -mmt
7z a -t7z dist\PEinjector.7z .\tmp\pkg\VentoyAutoRun.bat -m0=BCJ -m1=LZMA:d=21 -ms -mmt
rmdir /S /Q tmp
tmp\py\python.zip:
mkdir tmp\py
cd tmp\py
curl https://www.python.org/ftp/python/3.12.1/python-3.12.1-embed-amd64.zip -o tmp\py\python.zip
env\python.exe: tmp\py\python.zip
7z x -y -aos -oenv\ tmp\py\python.zip
install: dist\PEinjector.7z installer/install.py
python installer\install.py
build: dist\PEinjector.7z
prepare: env\python.exe
clean:
rmdir /S /Q tmp
rmdir /S /Q dist
mkdir dist
debug: dist\PEinjector.7z
python installer\install.py
start_vm.cmd
start:
start_vm.cmd