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 ..