You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-06-23 00:40:06 +02:00
fix: universal binary should be in dist/$x_darwin_all dir
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
@ -5,6 +5,7 @@ import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@ -216,6 +217,7 @@ func TestRun(t *testing.T) {
|
||||
func checkUniversalBinary(tb testing.TB, unibin *artifact.Artifact) {
|
||||
tb.Helper()
|
||||
|
||||
require.True(tb, strings.HasSuffix(unibin.Path, "foo_darwin_all/foo"))
|
||||
f, err := macho.OpenFat(unibin.Path)
|
||||
require.NoError(tb, err)
|
||||
require.Len(tb, f.Arches, 2)
|
||||
|
Reference in New Issue
Block a user