Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

feat: embed Windows VERSIONINFO resource in gwtm.exe - #22

Merged
lucasmodrich merged 1 commit into
mainfrom
windows-versioninfo
Feb 21, 2026
Merged

lucasmodrich merged 1 commit into
mainfrom
windows-versioninfo

Conversation

@lucasmodrich

Copy link
Copy Markdown
Owner

Summary

  • Add cmd/git-worktree-manager/gen_versioninfo.go (build-ignored) — parses the semver release version and writes versioninfo.json with all Windows VERSIONINFO fields (company, description, copyright, product name, version integers)
  • Add goversioninfo install to before.hooks and per-build hooks.pre in .goreleaser.yml — generates and compiles resource_windows.syso before each Windows build; Go automatically links *_windows.syso files, no build command changes needed
  • Gitignore both generated files (versioninfo.json, resource_windows.syso)

Result

After this change, gwtm.exe Properties → Details in Windows Explorer will show:

  • File description: Git Worktree Manager
  • File version: e.g. 2.1.0.0
  • Product name: gwtm
  • Product version: e.g. 2.1.0
  • Copyright: Copyright © 2026 Lucas Modrich

Test plan

  • goreleaser check passes (verified locally ✓)
  • go run ./cmd/git-worktree-manager/gen_versioninfo.go 2.1.0 produces correct JSON (verified locally ✓)
  • goreleaser release --snapshot --clean builds successfully and dist/gwtm_Windows_x86_64.exe shows populated Details tab
  • Linux/macOS binaries unaffected (syso is only linked for GOOS=windows)

🤖 Generated with Claude Code

Add a build-ignored gen_versioninfo.go helper that writes versioninfo.json
from the release version string, and wire goversioninfo into the GoReleaser
pre-build hooks so resource_windows.syso is compiled and linked for Windows
builds. This populates the Details tab in Windows Explorer (description,
version, copyright, product name) for gwtm.exe.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lucasmodrich
lucasmodrich merged commit f92f457 into main Feb 21, 2026
2 checks passed
@lucasmodrich
lucasmodrich deleted the windows-versioninfo branch February 21, 2026 03:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant