mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-04-13 11:50:34 +02:00
fix: only debs should create iphoneos pkgs (#3719)
problem was made evident in the last nfpm update... this should fix it. refs #3715 Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
e27e3a6478
commit
caaf9973ee
@ -145,7 +145,11 @@ func create(ctx *context.Context, fpm config.NFPM, format string, binaries []*ar
|
||||
arch := infoArch + binaries[0].Goamd64 // unique arch key
|
||||
infoPlatform := binaries[0].Goos
|
||||
if infoPlatform == "ios" {
|
||||
infoPlatform = "iphoneos-arm64"
|
||||
if format == "deb" {
|
||||
infoPlatform = "iphoneos-arm64"
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
bindDir := fpm.Bindir
|
||||
|
@ -250,7 +250,7 @@ func TestRunPipe(t *testing.T) {
|
||||
}
|
||||
require.NoError(t, Pipe{}.Run(ctx))
|
||||
packages := ctx.Artifacts.Filter(artifact.ByType(artifact.LinuxPackage)).List()
|
||||
require.Len(t, packages, 51)
|
||||
require.Len(t, packages, 47)
|
||||
for _, pkg := range packages {
|
||||
format := pkg.Format()
|
||||
require.NotEmpty(t, format)
|
||||
|
Loading…
x
Reference in New Issue
Block a user