@echo off
setlocal enabledelayedexpansion

cd /d "%~dp0"

echo Building the executable...
python -m PyInstaller --onefile --windowed --name=ExcelFilter --distpath=dist --icon=app_icon.ico gui_new.py --add-data=config.json;. --add-data=presets.json;. --add-data=app_icon.ico;. --add-data=locales;locales

echo Executable built successfully!
pause
