20 lines
560 B
Batchfile
20 lines
560 B
Batchfile
@echo off
|
|
echo Building HEIF to JPG converter...
|
|
|
|
:: Set actual paths based on your system
|
|
SET PYTHON_DLL_PATH=C:\Users\vanko\anaconda3\DLLs
|
|
SET VENV_PATH=C:\Users\vanko\MyCode\Heif2Jpg\heif2jpg
|
|
SET SITE_PACKAGES=%VENV_PATH%\Lib\site-packages
|
|
|
|
pyinstaller --noconsole --onefile ^
|
|
--icon="Heif2Jpg.ico" ^
|
|
--hidden-import=PIL._tkinter_finder ^
|
|
--hidden-import=xml.parsers.expat ^
|
|
--add-binary="%PYTHON_DLL_PATH%\pyexpat.pyd;." ^
|
|
--add-binary="%PYTHON_DLL_PATH%\_tkinter.pyd;." ^
|
|
--collect-all pillow_heif ^
|
|
--collect-all PIL ^
|
|
heif2jpgGuiBar.py
|
|
|
|
echo Done!
|
|
pause |