1
0
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:
Carlos Alexandro Becker 2023-01-25 15:10:17 -03:00 committed by GitHub
parent e27e3a6478
commit caaf9973ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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)