fix(release): align Linux package smoke artifacts

Match Electron Builder Linux output by accepting linux-*-unpacked directories,
treating AppImage blockmaps as optional, and validating release asset names
against the generated x86_64/amd64 and arm64 artifacts.

Tested: bun test scripts/quality-gate/package-smoke/index.test.ts
Tested: bun test scripts/pr/release-workflow.test.ts scripts/quality-gate/package-smoke/index.test.ts
Tested: bun run check:policy
Tested: bun run check:native
Tested: bun run verify
Confidence: high
Scope-risk: moderate
This commit is contained in:
程序员阿江(Relakkes)
2026-06-03 20:19:07 +08:00
parent 79d8468580
commit d7eef0ea51
4 changed files with 89 additions and 28 deletions
+5 -9
View File
@@ -230,18 +230,16 @@ jobs:
;;
Linux-x64)
expected=(
"Claude-Code-Haha-${APP_VERSION}-linux-x64.AppImage"
"Claude-Code-Haha-${APP_VERSION}-linux-x64.AppImage.blockmap"
"Claude-Code-Haha-${APP_VERSION}-linux-x64.deb"
"Claude-Code-Haha-${APP_VERSION}-linux-x86_64.AppImage"
"Claude-Code-Haha-${APP_VERSION}-linux-amd64.deb"
"latest-linux.yml"
)
;;
Linux-ARM64)
expected=(
"Claude-Code-Haha-${APP_VERSION}-linux-arm64.AppImage"
"Claude-Code-Haha-${APP_VERSION}-linux-arm64.AppImage.blockmap"
"Claude-Code-Haha-${APP_VERSION}-linux-arm64.deb"
"latest-linux.yml"
"latest-linux-arm64.yml"
)
;;
Windows-x64)
@@ -366,11 +364,9 @@ jobs:
"Claude-Code-Haha-${APP_VERSION}-mac-x64.dmg.blockmap"
"Claude-Code-Haha-${APP_VERSION}-mac-x64.zip"
"Claude-Code-Haha-${APP_VERSION}-mac-x64.zip.blockmap"
"Claude-Code-Haha-${APP_VERSION}-linux-x64.AppImage"
"Claude-Code-Haha-${APP_VERSION}-linux-x64.AppImage.blockmap"
"Claude-Code-Haha-${APP_VERSION}-linux-x64.deb"
"Claude-Code-Haha-${APP_VERSION}-linux-x86_64.AppImage"
"Claude-Code-Haha-${APP_VERSION}-linux-amd64.deb"
"Claude-Code-Haha-${APP_VERSION}-linux-arm64.AppImage"
"Claude-Code-Haha-${APP_VERSION}-linux-arm64.AppImage.blockmap"
"Claude-Code-Haha-${APP_VERSION}-linux-arm64.deb"
"Claude-Code-Haha-${APP_VERSION}-win-x64.exe"
"Claude-Code-Haha-${APP_VERSION}-win-x64.exe.blockmap"