feat: make update.bat description loading interactive
CI / test (push) Successful in 27s

This commit is contained in:
strsv committed 2026-11-09 09:05:15 +03:00
1 parent 1b7830aa9b
commit 48e89f85e4
14 files changed
+118 -49

No files matched your search

+40 -17
View File
@@ -1,17 +1,40 @@
@echo off
setlocal
cd /d "%~dp0.."
python SteamBase\tools\import_steam.py
if errorlevel 1 goto :error
python SteamBase\tools\fetch_details.py --limit 200
if errorlevel 1 goto :error
python SteamBase\tools\cache_covers.py --all
if errorlevel 1 goto :error
echo.
echo Done. Start the UI with SteamBase\start_web.bat
exit /b 0
:error
echo.
echo Something failed - see the message above.
pause
exit /b 1
@echo off
setlocal
cd /d "%~dp0.."
set "DETAILS_LIMIT=0"
set /p "DO_DETAILS=Load Steam Store descriptions? [y/N]: "
if /i "%DO_DETAILS%"=="y" goto :ask_details
if /i "%DO_DETAILS%"=="yes" goto :ask_details
goto :import
:ask_details
set "DETAILS_LIMIT=200"
set /p "DETAILS_LIMIT=How many descriptions to load? [200]: "
if "%DETAILS_LIMIT%"=="" set "DETAILS_LIMIT=200"
set "NON_DIGIT="
for /f "delims=0123456789" %%A in ("%DETAILS_LIMIT%") do set "NON_DIGIT=1"
if defined NON_DIGIT (
echo Enter a number.
goto :ask_details
)
:import
python SteamBase\tools\import_steam.py
if errorlevel 1 goto :error
if "%DETAILS_LIMIT%"=="0" goto :covers
python SteamBase\tools\fetch_details.py --limit %DETAILS_LIMIT%
if errorlevel 1 goto :error
:covers
python SteamBase\tools\cache_covers.py --all
if errorlevel 1 goto :error
echo.
echo Done. Start the UI with SteamBase\start_web.bat
exit /b 0
:error
echo.
echo Something failed - see the message above.
pause
exit /b 1