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