diff --git a/internal/pipe/scoop/scoop.go b/internal/pipe/scoop/scoop.go index 2d7ba83d379..611280cd3c0 100644 --- a/internal/pipe/scoop/scoop.go +++ b/internal/pipe/scoop/scoop.go @@ -193,9 +193,18 @@ func dataFor(ctx *context.Context, cl client.Client, artifacts []*artifact.Artif } for _, artifact := range artifacts { - var arch = "64bit" - if artifact.Goarch == "386" { + if artifact.Goos != "windows" { + continue + } + + var arch string + switch { + case artifact.Goarch == "386": arch = "32bit" + case artifact.Goarch == "amd64": + arch = "64bit" + default: + continue } url, err := tmpl.New(ctx). diff --git a/internal/pipe/scoop/scoop_test.go b/internal/pipe/scoop/scoop_test.go index d6fde65edcf..4d2b858f8f8 100644 --- a/internal/pipe/scoop/scoop_test.go +++ b/internal/pipe/scoop/scoop_test.go @@ -941,6 +941,23 @@ func Test_buildManifest(t *testing.T) { }, }, }, + { + Name: "foo_1.0.1_windows_arm.tar.gz", + Goos: "windows", + Goarch: "arm", + Path: file, + Extra: map[string]interface{}{ + "ArtifactUploadHash": "820ead5d9d2266c728dce6d4d55b6460", + "Builds": []*artifact.Artifact{ + { + Name: "foo.exe", + }, + { + Name: "bar.exe", + }, + }, + }, + }, { Name: "foo_1.0.1_windows_386.tar.gz", Goos: "windows",