From c3d2c1416f1d81e885a5f85f3e4749472f51098c Mon Sep 17 00:00:00 2001 From: AskaEth Date: Wed, 9 Sep 2026 21:10:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20console=20=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E7=94=A8=20--ignore-scripts=EF=BC=8C=E7=BB=95=E5=BC=80=20pnpm?= =?UTF-8?q?=2011=20=E7=9A=84=20ERR=5FPNPM=5FIGNORED=5FBUILDS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/pnpm-workspace.yaml | 5 ----- deploy/build.bat | 4 +++- 2 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 console/pnpm-workspace.yaml diff --git a/console/pnpm-workspace.yaml b/console/pnpm-workspace.yaml deleted file mode 100644 index c8aba11..0000000 --- a/console/pnpm-workspace.yaml +++ /dev/null @@ -1,5 +0,0 @@ -# pnpm 11 起,构建脚本白名单等设置从 package.json 的 "pnpm" 字段挪到这里。 -# electron / electron-winstaller 必须在安装时执行脚本,否则拿不到 Electron 运行时二进制。 -onlyBuiltDependencies: - - electron - - electron-winstaller diff --git a/deploy/build.bat b/deploy/build.bat index 37c1371..3781eba 100644 --- a/deploy/build.bat +++ b/deploy/build.bat @@ -50,7 +50,9 @@ 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 -call pnpm install --frozen-lockfile || exit /b 1 +REM pnpm 11 blocks postinstall by default; electron-builder fetches its own Electron +REM runtime into its cache, so skipping scripts here is safe (and avoids ERR_PNPM_IGNORED_BUILDS). +call pnpm install --frozen-lockfile --ignore-scripts || exit /b 1 call pnpm run dist || exit /b 1 cd ..