fix(build): console 安装用 --ignore-scripts,绕开 pnpm 11 的 ERR_PNPM_IGNORED_BUILDS
This commit is contained in:
1 parent
1399bae59e
commit
c3d2c1416f
2 files changed
+3
-6
No files matched your search
+3
-1
@@ -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 ..
|
||||
|
||||
|
||||
Reference in new issue
Block a user