Install pyinstaller automatically when not available

This commit is contained in:
DevilXD
2022-12-07 09:26:53 +01:00
parent a4b66e204e
commit c2a28854d1

View File

@@ -2,4 +2,8 @@
cls
set dirpath=%~dp0
if "%dirpath:~-1%" == "\" set dirpath=%dirpath:~0,-1%
if not exist "%dirpath%\env\scripts\pyinstaller.exe" (
"%dirpath%\env\scripts\pip" install pyinstaller
"%dirpath%\env\scripts\python" "%dirpath%\env\scripts\pywin32_postinstall.py" -install -silent
)
"%dirpath%/env/scripts/pyinstaller" build.spec