mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
fix(nfpm): bad filename for 386
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
1455d462f1
commit
e0a21a1f5d
@ -180,8 +180,8 @@ var termuxArchReplacer = strings.NewReplacer(
|
||||
|
||||
func create(ctx *context.Context, fpm config.NFPM, format string, artifacts []*artifact.Artifact) error {
|
||||
// TODO: improve this.
|
||||
infoArch := artifacts[0].Goarch + artifacts[0].Go386 + artifacts[0].Goarm + artifacts[0].Gomips // key used for the ConventionalFileName et al
|
||||
arch := infoArch + artifacts[0].Goamd64 + artifacts[0].Goarm64 + artifacts[0].Goppc64 + artifacts[0].Goriscv64 // unique arch key
|
||||
infoArch := artifacts[0].Goarch + artifacts[0].Goarm + artifacts[0].Gomips // key used for the ConventionalFileName et al
|
||||
arch := infoArch + artifacts[0].Go386 + artifacts[0].Goamd64 + artifacts[0].Goarm64 + artifacts[0].Goppc64 + artifacts[0].Goriscv64 // unique arch key
|
||||
infoPlatform := artifacts[0].Goos
|
||||
if infoPlatform == "ios" {
|
||||
if format == "deb" {
|
||||
|
@ -592,6 +592,18 @@ func doTestRunPipeConventionalNameTemplate(t *testing.T, snapshot bool) {
|
||||
},
|
||||
})
|
||||
}
|
||||
case "386":
|
||||
ctx.Artifacts.Add(&artifact.Artifact{
|
||||
Name: "subdir/mybin",
|
||||
Path: binPath,
|
||||
Goarch: goarch,
|
||||
Goos: goos,
|
||||
Go386: "sse2",
|
||||
Type: artifact.Binary,
|
||||
Extra: map[string]interface{}{
|
||||
artifact.ExtraID: "default",
|
||||
},
|
||||
})
|
||||
case "riscv64":
|
||||
ctx.Artifacts.Add(&artifact.Artifact{
|
||||
Name: "subdir/mybin",
|
||||
|
Loading…
x
Reference in New Issue
Block a user