22 lines
328 B
Batchfile
22 lines
328 B
Batchfile
@echo off
|
||
chcp 65001 >nul
|
||
cd /d "%~dp0"
|
||
|
||
where node >nul 2>&1
|
||
if %errorlevel% neq 0 (
|
||
echo [错误] 未找到 Node.js,请先安装 Node.js
|
||
pause
|
||
exit /b 1
|
||
)
|
||
|
||
if not exist "node_modules" (
|
||
echo [初始化] 首次运行,正在安装依赖...
|
||
npm install
|
||
echo.
|
||
)
|
||
|
||
node export_summary.js %*
|
||
|
||
echo.
|
||
pause
|