From 4d56c73ae6322eee1cb9b32ecf2c9fe50391a20a Mon Sep 17 00:00:00 2001 From: AskaEth Date: Wed, 9 Sep 2026 21:38:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20build.bat=20=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=94=B9=E5=9B=9E=E7=BA=AF=20ASCII?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cmd.exe 会错解 .bat 里的 UTF-8 文本,上一版加的中文 REM 让构建日志里 冒出一行 "'PNPM_IGNORED_BUILDS' is not recognized"。文件头部本来就写明必须纯 ASCII。 --- deploy/build.bat | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/deploy/build.bat b/deploy/build.bat index e6a7722..a7e2488 100644 --- a/deploy/build.bat +++ b/deploy/build.bat @@ -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