diff --git a/CHANGELOG.md b/CHANGELOG.md index 5858bfb..d3cd4cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ ## [Unreleased] +## [1.0.0] - 2026-08-30 + ### Added - 首次实现“一键运行”完整功能(v1.0.0 基线): diff --git a/scripts/make-release-packages.ps1 b/scripts/make-release-packages.ps1 new file mode 100644 index 0000000..7ac2161 --- /dev/null +++ b/scripts/make-release-packages.ps1 @@ -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 diff --git a/scripts/verify-publish.ps1 b/scripts/verify-publish.ps1 new file mode 100644 index 0000000..2f99ada --- /dev/null +++ b/scripts/verify-publish.ps1 @@ -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)"