From beaa76b1e19b5a30718c525c2628d6ab991d18ec Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 2 Apr 2023 20:37:04 +0200 Subject: [PATCH] Add script (#1) --- run.bat | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 run.bat diff --git a/run.bat b/run.bat new file mode 100644 index 0000000..619e0f3 --- /dev/null +++ b/run.bat @@ -0,0 +1,27 @@ +@ECHO off + +:: Check python installation +python --version >NUL +IF errorlevel 1 ( + :: Verbose + ECHO + ECHO Installation of Python not found, installation... + ECHO Make sure you give the admin rights to the Python installer + + :: Auto accept ToT + ECHO Y | winget list >NUL + + :: Install Python + winget install -he Python.Python.3.11 + + :: Verbose + ECHO Download and installation of dependencies... +) + +:: Check dependencies +python -m pip install -r .\requirements.txt >NUL + +:: Run app +python .\main.py + +EXIT /b