DataFlowing / processor /deploy.bat
stouchinglhh
collector: 同步采集工程 v1.2.1(全部 LFS 模式文件指针化,与 Space 现有文件合并)
d646dd7
Raw History Blame Contribute Delete
997 Bytes
@echo off
rem One-click deploy/start entry (Windows). Double-click = full deploy.
rem Use "deploy.bat --check-only" for a check-only run.
rem Shared cross-platform logic lives in deploy.py.
rem Keep this file ASCII-only: cmd.exe parses .bat in the OEM codepage.
setlocal EnableExtensions EnableDelayedExpansion
cd /d "%~dp0"
set "EXIT_CODE=1"
where py >nul 2>nul
if not errorlevel 1 (
py -3.12 -c "pass" >nul 2>nul
if not errorlevel 1 (
py -3.12 deploy.py %*
set "EXIT_CODE=!ERRORLEVEL!"
goto :finish
)
py -3 -c "pass" >nul 2>nul
if not errorlevel 1 (
py -3 deploy.py %*
set "EXIT_CODE=!ERRORLEVEL!"
goto :finish
)
)
where python >nul 2>nul
if not errorlevel 1 (
python deploy.py %*
set "EXIT_CODE=!ERRORLEVEL!"
goto :finish
)
python3 deploy.py %*
set "EXIT_CODE=!ERRORLEVEL!"
:finish
echo.
echo ==============================
echo Deploy finished. Press any key to close.
echo ==============================
pause >nul
endlocal & exit /b %EXIT_CODE%