Add script (#1)
This commit is contained in:
parent
71af72b6aa
commit
beaa76b1e1
1 changed files with 27 additions and 0 deletions
27
run.bat
Normal file
27
run.bat
Normal file
|
@ -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
|
Reference in a new issue