Updated windows launcher

This commit is contained in:
Wiktor Mazur
2021-10-07 19:38:37 +02:00
parent 56d4277fce
commit e754bca77b
+29 -6
View File
@@ -1,10 +1,33 @@
@echo off
TITLE Albion online stats launcher TITLE Albion online stats launcher
python -m venv python_env where /Q python3 && set FOUND_PYTHON=python3 && goto install
call .\python_env\Scripts\activate.bat where /Q py && set FOUND_PYTHON=py && goto install
where /Q python && set FOUND_PYTHON=python && goto install
python -m pip install --upgrade pip if not defined FOUND_PYTHON (goto python_not_found)
python -m pip install aostats
python -m pip install --upgrade aostats
call aostats :install
echo Found python: %FOUND_PYTHON%
echo Installing virtual environment in current directory...
%FOUND_PYTHON% -m venv python_env
call .\python_env\Scripts\activate.bat
echo Installing newest version of aostats...
python -m pip install --upgrade pip
python -m pip install aostats
python -m pip install --upgrade aostats
goto execute
:execute
start pythonw .\python_env\Scripts\aostats-script.py
goto end
:python_not_found
echo Error: python not found in the system
python
pause
:end