From c2a28854d181decbcc4f75ad8f79828c63b41e8b Mon Sep 17 00:00:00 2001 From: DevilXD Date: Wed, 7 Dec 2022 09:26:53 +0100 Subject: [PATCH] Install pyinstaller automatically when not available --- build.bat | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.bat b/build.bat index 0671833..1e1c0f3 100644 --- a/build.bat +++ b/build.bat @@ -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