Eidrion / CHECK_RELEASE.bat
PureOne's picture
Eidrion 1.0.0-hf.1: verified release batch 1/3
d58704b verified
Raw History Blame Contribute Delete
1.06 kB
@echo off
setlocal
cd /d "%~dp0"
set "EIDRION_CHECK_EXIT=1"
echo Eidrion local release integrity check
echo This launcher checks the allowlist and checksums. It does not install or upload anything.
echo.
py -3 -c "import sys; sys.exit(0 if sys.version_info >= (3,10) else 1)" >nul 2>&1
if not errorlevel 1 goto use_py
python -c "import sys; sys.exit(0 if sys.version_info >= (3,10) else 1)" >nul 2>&1
if not errorlevel 1 goto use_python
echo ERROR: Python 3.10 or newer was not found.
echo Install Python from python.org, enable Add Python to PATH, and reopen this launcher.
goto finish
:use_py
set "EIDRION_CHECK_PYTHON=py -3"
goto check
:use_python
set "EIDRION_CHECK_PYTHON=python"
:check
%EIDRION_CHECK_PYTHON% -B "upload_to_huggingface.py" --dry-run %*
set "EIDRION_CHECK_EXIT=%errorlevel%"
if not "%EIDRION_CHECK_EXIT%"=="0" (
echo.
echo ERROR: Release check failed. Read the error above and extract a fresh complete release if files changed.
)
:finish
echo.
echo Press any key to close this window.
pause >nul
exit /b %EIDRION_CHECK_EXIT%