cd /d %~dp0
rmdir /s /q dist
rmdir /s /q build
del /s /q dots_tray.spec
pyinstaller --onefile --noconsole --hidden-import=pkg_resources.py2_warn --hidden-import=pkg_resources dots_tray.py
move /Y dist\dots_tray.exe dots_tray.exe
rmdir /s /q dist
rmdir /s /q build
rmdir /s /q __pycache__
del /s /q dots_tray.spec
pause