@echo off rem --------------------------------------------------------------- rem This file must stay PURE ASCII and CRLF (see scripts\start-headless.cmd rem for the full explanation: cmd.exe parses batch files byte-by-byte with rem the current code page, so multi-byte chars / bare LF corrupt line offsets). rem All Chinese messages come from the Node script instead. rem rem Usage: rem scripts\build-docker.cmd build with default tags rem scripts\build-docker.cmd --mirror --check build with CN mirrors, then self-check rem scripts\build-docker.cmd --help list all options rem --------------------------------------------------------------- setlocal chcp 65001 >nul cd /d "%~dp0.." title YunXueTang Assistant - docker build where node >nul 2>nul if errorlevel 1 goto no_node node "scripts\build-docker.mjs" %* set RC=%ERRORLEVEL% if "%RC%"=="0" exit /b 0 echo. echo [exit] code %RC% (0 ok 1 build failed 2 env/args problem) pause exit /b %RC% :no_node echo [error] node.exe not found. Install Node.js 22+ from https://nodejs.org/ pause exit /b 2