Merge pull request #11257 from cli/andyfeller/fix-goreleaser-windows-rsyso

Ensure GoReleaser does not break on Mac OS and Linux when skipping Windows `.rsyso` generation script
This commit is contained in:
Andy Feller 2025-07-09 10:16:18 -04:00 committed by GitHub
commit 0e27e84084
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ before:
- >- # On linux the completions are used in nfpms below, but on macos they are used outside in the deployment build.
{{ if eq .Runtime.Goos "windows" }}echo{{ end }} make completions
- >- # We need to create the `.syso` files (per architecture) to embed Windows resources (version info)
{{ if ne .Runtime.Goos "windows" }}echo{{ end }} pwsh .\script\gen-winres.ps1 '{{ .Version }} ({{time "2006-01-02"}})' '{{ .Version }}' .\script\versioninfo.template.json .\cmd\gh\
{{ if ne .Runtime.Goos "windows" }}echo{{ end }} pwsh '.\script\gen-winres.ps1' '{{ .Version }} ({{time "2006-01-02"}})' '{{ .Version }}' '.\script\versioninfo.template.json' '.\cmd\gh\'
builds:
- id: macos #build:macos
goos: [darwin]