mirror of
https://github.com/creeper2eletricboogaloo/L4JDownloadableContent.git
synced 2026-09-14 19:34:43 +02:00
22 lines
381 B
Batchfile
22 lines
381 B
Batchfile
@echo off
|
|
setlocal
|
|
set "HERE=%~dp0"
|
|
set "HERE=%HERE:~0,-1%"
|
|
set "REPO=%HERE%\..\..\.."
|
|
where python >nul 2>nul
|
|
if %errorlevel%==0 (
|
|
set "PY=python"
|
|
) else (
|
|
set "PY=py -3"
|
|
)
|
|
%PY% "%REPO%\scripts\make_bundle_preview.py" --bundle-dir "%HERE%" --text-image-max-height 36
|
|
if errorlevel 1 (
|
|
echo.
|
|
echo Failed.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo.
|
|
echo Created "%HERE%\preview.png"
|
|
pause
|