chore: 发布 v1.0.0——归档变更日志并添加发布打包/验证脚本

This commit is contained in:
2026-08-30 15:50:35 +08:00
parent 2081a938bf
commit ad98eb18dc
3 changed files with 27 additions and 0 deletions
+2
View File
@@ -7,6 +7,8 @@
## [Unreleased] ## [Unreleased]
## [1.0.0] - 2026-08-30
### Added ### Added
- 首次实现“一键运行”完整功能(v1.0.0 基线): - 首次实现“一键运行”完整功能(v1.0.0 基线):
+11
View File
@@ -0,0 +1,11 @@
# 生成发布压缩包:框架依赖版 + 自包含版
$ErrorActionPreference = 'Stop'
$root = Split-Path -Parent $PSScriptRoot
$publish = Join-Path $root 'publish'
Compress-Archive -Path (Join-Path $publish 'win-x64-fdd/*') -DestinationPath (Join-Path $publish 'OneClickRun-1.0.0-win-x64-fdd.zip') -Force
Compress-Archive -Path (Join-Path $publish 'win-x64-sc/*') -DestinationPath (Join-Path $publish 'OneClickRun-1.0.0-win-x64-sc.zip') -Force
Get-ChildItem (Join-Path $publish '*.zip') |
Select-Object Name, @{n='MB';e={[math]::Round($_.Length/1MB,1)}}, @{n='Time';e={$_.LastWriteTime}} |
Format-Table -AutoSize
+14
View File
@@ -0,0 +1,14 @@
# 发布产物冒烟:--snapshot 模式显示轮盘、导出 PNG 后自动退出
$ErrorActionPreference = 'Stop'
$exe = $args[0]
$outPng = $args[1]
if (-not (Test-Path $exe)) { throw "未找到: $exe" }
Remove-Item $outPng -ErrorAction SilentlyContinue
$v = (Get-Item $exe).VersionInfo
Write-Output ("版本信息: FileVersion={0} ProductVersion={1}" -f $v.FileVersion, $v.ProductVersion)
$p = Start-Process -FilePath $exe -ArgumentList @('--snapshot', $outPng) -PassThru
if (-not $p.WaitForExit(15000)) { Stop-Process -Id $p.Id -Force; throw '快照模式 15 秒未退出' }
Write-Output "退出码: $($p.ExitCode)"
Write-Output "快照已生成: $(Test-Path $outPng) ($(if (Test-Path $outPng) { (Get-Item $outPng).Length } else { 0 }) bytes)"