27 lines
560 B
Batchfile
27 lines
560 B
Batchfile
@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
|