fix(build): build.bat 注释改回纯 ASCII

cmd.exe 会错解 .bat 里的 UTF-8 文本,上一版加的中文 REM 让构建日志里
冒出一行 "'PNPM_IGNORED_BUILDS' is not recognized"。文件头部本来就写明必须纯 ASCII。
This commit is contained in:
AskaEth committed 2026-09-09 21:38:23 +08:00
1 parent 33d4b39eb9
commit 4d56c73ae6
1 file changed
+4 -5
+4 -5
View File
@@ -50,11 +50,10 @@ taskkill /im scoreboard.exe /f >nul 2>&1
if not exist "rules" echo [warn] rules dir missing
node deploy\prepare-extra.mjs || exit /b 1
cd console
REM pnpm 11 blocks postinstall by default (ERR_PNPM_IGNORED_BUILDS), so the electron
REM runtime binary is fetched explicitly below instead of relying on the install script.
REM console\pnpm-workspace.yaml 里的 allowBuilds 已经放行 electron 的安装脚本,
REM 因此这里不再加 --ignore-scripts(否则 pnpm run 的依赖校验会以
REM ERR_PNPM_IGNORED_BUILDS 失败)。
REM console\pnpm-workspace.yaml uses allowBuilds so electron's install script is
REM allowed to run; do NOT add --ignore-scripts here, it makes pnpm run fail its
REM dependency check with ERR_PNPM_IGNORED_BUILDS.
REM Keep this file ASCII-only: cmd.exe mis-parses UTF-8 text inside .bat files.
call pnpm install --frozen-lockfile || exit /b 1
call :ensure_electron || exit /b 1
call pnpm run dist || exit /b 1