Files
kkallasandClaude Opus 5.5 a33736742a Technician updater and one shared Python environment (v0.9.0)
update_windows.bat / update_macos.command: fetch release tags from Gitea,
move the folder to the newest vX.Y (git downloads only what changed),
connect a folder unpacked from a release zip on first run, install git/uv
when missing and sync the Python libraries. Developer copies on a branch
are left alone.

run_* and update_* share one environment (KotaTechnicianTool/venv)
instead of one per version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 19:42:25 +02:00

28 lines
870 B
Batchfile

@echo off
setlocal
cd /d "%~dp0"
rem One shared Python environment for every version (update_windows.bat keeps it current).
set "UV_PROJECT_ENVIRONMENT=%LOCALAPPDATA%\KotaTechnicianTool\venv"
set "PATH=%USERPROFILE%\.local\bin;%PATH%"
where uv >nul 2>nul
if errorlevel 1 (
echo uv ^(Python package runner^) is not installed.
echo It will be installed for the current user from https://astral.sh/uv
choice /m "Install uv now"
if errorlevel 2 exit /b 1
powershell -NoProfile -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
)
where uv >nul 2>nul
if errorlevel 1 (
echo [!] uv installation failed. Ask the firmware team for help.
pause
exit /b 1
)
echo Starting KOTA Sensorbox Technician Tool (first start downloads dependencies)...
uv run --frozen --no-dev --python 3.12 python -m kota_tech
if errorlevel 1 pause