1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-04-13 11:50:34 +02:00

fix: gofish on windows

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos A Becker 2021-10-13 00:04:49 -03:00
parent 3e003ac82a
commit d6724cf624
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 3 additions and 3 deletions

View File

@ -37,8 +37,8 @@ food = {
resources = { resources = {
{{- range $binary := $element.Binaries }} {{- range $binary := $element.Binaries }}
{ {
path = {{if ne $element.OS "windows"}}"{{ $binary }}"{{else}}"{{ $binary }}.exe"{{end}}, path = "{{ $binary }}",
installpath = {{if ne $element.OS "windows"}}"bin/{{ $binary }}"{{else}}"bin\\{{ $binary }}.exe"{{end}}, installpath = {{if ne $element.OS "windows"}}"bin/{{ $binary }}"{{else}}"bin\\{{ $binary }}"{{end}},
{{- if ne $element.OS "windows"}} {{- if ne $element.OS "windows"}}
executable = true executable = true
{{- end }} {{- end }}

View File

@ -65,7 +65,7 @@ func createTemplateData() templateData {
OS: "windows", OS: "windows",
DownloadURL: "https://github.com/caarlos0/test/releases/download/v0.1.3/test_windows_amd64.zip", DownloadURL: "https://github.com/caarlos0/test/releases/download/v0.1.3/test_windows_amd64.zip",
SHA256: "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67", SHA256: "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67",
Binaries: []string{"bin1", "bin2", "bin3"}, Binaries: []string{"bin1.exe", "bin2.exe", "bin3.exe"},
}, },
}, },
Name: "Test", Name: "Test",