Skip to content

release: リリース成果物に winget manifest を追加#39

Merged
buty4649 merged 2 commits intomainfrom
release/add-winget-manifest
Apr 20, 2026
Merged

release: リリース成果物に winget manifest を追加#39
buty4649 merged 2 commits intomainfrom
release/add-winget-manifest

Conversation

@buty4649
Copy link
Copy Markdown
Contributor

Summary

  • goreleaser のリリース成果物に winget 用マニフェスト (winget-manifest.yaml) を追加
  • builds[].hooks.post で windows/amd64 バイナリから sha256 を計算し、scripts/gen-winget-manifest.sh にてマニフェストを生成
  • release.extra_files で生成ファイルを GitHub Release に同梱

生成されるマニフェスト例

PackageIdentifier: Pepabo.xpoint-cli
PackageVersion: 1.1.0
PackageLocale: ja-JP
Publisher: GMO Pepabo Inc,
PackageName: xpoint-cli
License: MIT
ShortDescription: cli tool for X-point
Installers:
  - Architecture: x64
    InstallerType: portable
    InstallerUrl: https://github.com/pepabo/xpoint-cli/releases/download/v1.1.0/xp_1.1.0_windows_amd64.exe
    InstallerSha256: <sha256>
    Commands: [ xp ]
ManifestType: singleton
ManifestVersion: 1.12.0

Test plan

  • goreleaser check で設定の妥当性を確認
  • goreleaser release --snapshot --clean --skip=publish でローカル実行
  • 生成された dist/winget-manifest.yamlInstallerSha256xp.exe の sha256sum と一致することを確認
  • 実際のリリースタグで GitHub Release に winget-manifest.yaml が添付されることを確認

🤖 Generated with Claude Code

goreleaser の post-build hook で windows/amd64 バイナリから
sha256 を計算し winget-manifest.yaml を生成、release.extra_files
でリリース資産に含める。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@buty4649 buty4649 self-assigned this Apr 20, 2026
Linux/macOS は gh もしくは mise、Windows は winget-manifest
経由でのインストール手順を案内する。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@buty4649 buty4649 enabled auto-merge (squash) April 20, 2026 06:07
@buty4649 buty4649 merged commit 2a852ce into main Apr 20, 2026
2 checks passed
@buty4649 buty4649 deleted the release/add-winget-manifest branch April 20, 2026 06:07
@pepabo-pr-maker pepabo-pr-maker bot mentioned this pull request Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant