文档: 设计文档入库与构建配套收尾
- 云化两设计文档入库(devflow-core 抽取三步收口/云化架构 html) - 看板销账: T1-T4 逐件附验收 - D4 工具 schema 空 description 清理(渐进披露配套,~10KB/轮) - 换装脚本验证修复: 安装后装机 exe 版本核对,防 NSIS 静默失败误报成功 - capabilities/锁文件随批
This commit is contained in:
@@ -59,8 +59,16 @@ Start-Sleep -Seconds 2
|
||||
Start-Process $bundle.FullName -ArgumentList "/S" -Wait
|
||||
|
||||
if (-not (Test-Path $exe)) { Write-Host "[失败] 安装后未找到 $exe"; exit 1 }
|
||||
# 版本核对(2026-10-25 实证修复):NSIS 静默安装可能因文件锁静默失败,旧进程复活锁文件时
|
||||
# 曾出现「报换装成功但装机 exe 仍是旧版」。装机版本必须与本次构建一致才算换装成功。
|
||||
$wantVer = (Get-Content "$repo\src-tauri\tauri.conf.json" | ConvertFrom-Json).version
|
||||
$gotVer = (Get-Item $exe).VersionInfo.ProductVersion
|
||||
if ($gotVer -ne $wantVer) {
|
||||
Write-Host "[失败] 静默安装未生效:装机 exe 版本 $gotVer != 构建 $wantVer(疑似安装器被文件锁/旧进程拦截),请手工运行安装包后重试"
|
||||
exit 1
|
||||
}
|
||||
$exeTime = (Get-Item $exe).LastWriteTime
|
||||
Write-Host "[4/4] 启动验证(装机 exe 时间: $exeTime)..."
|
||||
Write-Host "[4/4] 启动验证(装机 exe $gotVer,时间: $exeTime)..."
|
||||
Start-Process $exe
|
||||
Start-Sleep -Seconds 6
|
||||
$proc = Get-Process devflow -ErrorAction SilentlyContinue
|
||||
|
||||
Reference in New Issue
Block a user