This commit is contained in:
1 parent
1b7830aa9b
commit
48e89f85e4
14 files changed
+118
-49
No files matched your search
+24
-1
@@ -46,15 +46,38 @@ if errorlevel 1 pause
|
||||
UPDATE_BAT = """@echo off
|
||||
setlocal
|
||||
cd /d "%~dp0app"
|
||||
|
||||
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\\python.exe" tools\\import_steam.py
|
||||
if errorlevel 1 goto :error
|
||||
"..\\python\\python.exe" tools\\fetch_details.py --limit 200
|
||||
if "%DETAILS_LIMIT%"=="0" goto :covers
|
||||
"..\\python\\python.exe" tools\\fetch_details.py --limit %DETAILS_LIMIT%
|
||||
if errorlevel 1 goto :error
|
||||
|
||||
:covers
|
||||
"..\\python\\python.exe" tools\\cache_covers.py --all
|
||||
if errorlevel 1 goto :error
|
||||
echo.
|
||||
echo Done. Start the UI with start_web.bat
|
||||
exit /b 0
|
||||
|
||||
:error
|
||||
echo.
|
||||
echo Something failed - see the message above.
|
||||
|
||||
Reference in new issue
Block a user