Updated windows launcher
This commit is contained in:
@@ -1,10 +1,33 @@
|
||||
@echo off
|
||||
|
||||
TITLE Albion online stats launcher
|
||||
|
||||
python -m venv python_env
|
||||
where /Q python3 && set FOUND_PYTHON=python3 && goto install
|
||||
where /Q py && set FOUND_PYTHON=py && goto install
|
||||
where /Q python && set FOUND_PYTHON=python && goto install
|
||||
|
||||
if not defined FOUND_PYTHON (goto python_not_found)
|
||||
|
||||
: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
|
||||
|
||||
call 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
|
||||
|
||||
Reference in New Issue
Block a user