Skip to content

Commit

Permalink
tweak pyinstaller command
Browse files Browse the repository at this point in the history
  • Loading branch information
XVs32 committed Feb 15, 2024
1 parent d927d55 commit 31693de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool/exe_packer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ for /f "delims=" %%i in ('python -c "from distutils.sysconfig import get_python_

echo The Python site-packages directory is: %python_site_package%

pyinstaller -F %src% -p ..\kcauto\ -p %python_site_package%
python -m PyInstaller -F %src% -p ..\kcauto\ -p %python_site_package%
move /y ".\dist\__main__.exe" "%target_path%"
rmdir /s /q ".\dist"
rmdir /s /q ".\build"
del .\__main__.spec

set "src=..\kcauto\kcauto_cui.py"
set "target_path=..\kcauto_cui.exe"
pyinstaller -F %src% -p ..\kcauto\ -p %python_site_package%
python -m PyInstaller -F %src% -p ..\kcauto\ -p %python_site_package%
move /y ".\dist\kcauto_cui.exe" "%target_path%"
rmdir /s /q ".\dist"
rmdir /s /q ".\build"
Expand Down

0 comments on commit 31693de

Please sign in to comment.