Files
PLStatus/build.bat
2026-02-17 09:17:46 +03:00

24 lines
949 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
REM Сборка одного exe для Windows (PyInstaller). Запуск из папки проекта.
REM Требуется: pip install pyinstaller
if not exist ".venv\Scripts\activate.bat" (
echo Создайте venv и установите зависимости: python -m venv .venv && .venv\Scripts\activate && pip install -r requirements.txt
exit /b 1
)
call .venv\Scripts\activate
pip install pyinstaller -q
REM Иконка: если нет icon.ico — создаём заглушку (make_icon.py)
if not exist "icon.ico" python make_icon.py
set ICON_OPT=
if exist "icon.ico" set ICON_OPT=--icon icon.ico
pyinstaller --onefile --noconsole --name PLStatus --clean %ICON_OPT% status_automation.py
echo.
echo Готово: dist\PLStatus.exe (без консоли, с иконкой если был icon.ico)
echo Рядом с exe положите config.json и папку images\ (см. README)
exit /b 0