发布 0.2.2:全部分发产物带签名,修发布脚本读 manifest 的编码

mygo.json version -> 0.2.2;CHANGELOG 加 0.2.2 小节。publish-gitea.ps1 读 update-windows-amd64.json 时补 -Encoding UTF8(PS 5.1 默认 ANSI 解码,中文 notes 乱码导致 ConvertFrom-Json 直接失败)。AGENTS.md 补该坑。产物:setup/tar.gz/portable.zip 全部签名 Valid;端到端 0.2.1->0.2.2 走 24KB delta。
This commit is contained in:
zerorigin2019 committed 2026-11-16 11:14:46 +08:00
1 parent 37827eb8c7
commit 2bd2b6d1af
4 files changed
+14 -3

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ if (-not (Test-Path -LiteralPath $Dir)) { throw "找不到构建输出目录:$
# manifest 是唯一必须存在的产物:没有它就没有更新可发。
$manifest = Get-ChildItem -LiteralPath $Dir -Filter "update-*-*.json" | Select-Object -First 1
if (-not $manifest) { throw "$Dir 里没有 update-<target>.json:构建时没带签名私钥?" }
$m = Get-Content -LiteralPath $manifest.FullName -Raw | ConvertFrom-Json
$m = Get-Content -LiteralPath $manifest.FullName -Raw -Encoding UTF8 | ConvertFrom-Json
$version = $m.version
if (-not $version) { throw "$($manifest.Name) 里没有 version 字段" }
$archiveName = Split-Path -Leaf ([uri]$m.url).AbsolutePath