mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-06-19 11:20:48 +08:00
fix(skill): surface ps1 delete errors + replace removed wmic CPU detection
Greptile review: - slim_dist.ps1: ErrorActionPreference SilentlyContinue -> Continue so failed deletes are reported instead of showing a false success banner - build_optimized.bat: wmic is removed on Windows 11 22H2+; use the built-in %NUMBER_OF_PROCESSORS% env var (with a fallback) so --jobs is not silently 0
This commit is contained in:
parent
20aaf84235
commit
26e12f33fa
@ -229,7 +229,9 @@ set MAIN_FILE=main.py
|
||||
set ICON_FILE=icon.ico
|
||||
|
||||
REM === 自动检测 CPU 核心数 ===
|
||||
for /f "tokens=2 delims==" %%a in ('wmic cpu get NumberOfLogicalProcessors /value ^| find "="') do set CPU_CORES=%%a
|
||||
REM 用 Windows 自带环境变量(wmic 在 Win11 22H2+ 已移除,探不到会让 --jobs=0 单线程编译)
|
||||
set CPU_CORES=%NUMBER_OF_PROCESSORS%
|
||||
if not defined CPU_CORES set CPU_CORES=4
|
||||
set /a BUILD_JOBS=%CPU_CORES%
|
||||
|
||||
REM === 参考项目的模块排除清单 ===
|
||||
@ -297,7 +299,7 @@ param(
|
||||
[string]$DistPath
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "SilentlyContinue"
|
||||
$ErrorActionPreference = "Continue" # 不静默吞错:删除失败会显示出来,避免假成功
|
||||
|
||||
Write-Host "`n========================================" -ForegroundColor Cyan
|
||||
Write-Host "dist 瘦身清理(参考 参考项目策略)" -ForegroundColor Cyan
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user