1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00

fix: scoop binary names (#1420)

This commit is contained in:
matthiasng 2020-04-02 23:59:01 +02:00 committed by GitHub
parent 1cf9100ecc
commit dec22cf0c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -196,7 +196,7 @@ func binaries(a *artifact.Artifact) []string {
// nolint: prealloc
var bins []string
for _, b := range a.ExtraOr("Builds", []*artifact.Artifact{}).([]*artifact.Artifact) {
bins = append(bins, b.Name+".exe")
bins = append(bins, b.Name)
}
return bins
}

View File

@ -825,10 +825,10 @@ func Test_buildManifest(t *testing.T) {
"ArtifactUploadHash": "820ead5d9d2266c728dce6d4d55b6460",
"Builds": []*artifact.Artifact{
{
Name: "foo",
Name: "foo.exe",
},
{
Name: "bar",
Name: "bar.exe",
},
},
},
@ -842,10 +842,10 @@ func Test_buildManifest(t *testing.T) {
"ArtifactUploadHash": "820ead5d9d2266c728dce6d4d55b6460",
"Builds": []*artifact.Artifact{
{
Name: "foo",
Name: "foo.exe",
},
{
Name: "bar",
Name: "bar.exe",
},
},
},