18 lines
413 B
Batchfile
18 lines
413 B
Batchfile
@echo off
|
|
setlocal
|
|
where node.exe >nul 2>nul
|
|
if errorlevel 1 (
|
|
echo [配方树工作台] 未找到 Node.js。请安装 Node.js 20 或更高版本后重试。
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0start-editor.ps1"
|
|
|
|
if errorlevel 1 (
|
|
echo [配方树工作台] 启动失败。请在当前目录运行 node server.mjs 查看原因。
|
|
pause
|
|
exit /b 1
|
|
)
|
|
endlocal
|