From b64a80da0b5e7a883b1f850ecd33b37f9f285237 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 3 Sep 2020 22:45:04 +0200 Subject: [PATCH] Make sure built binary files are executable when compressing with upx --- magefile.go | 1 + 1 file changed, 1 insertion(+) diff --git a/magefile.go b/magefile.go index 787742e3..55286549 100644 --- a/magefile.go +++ b/magefile.go @@ -578,6 +578,7 @@ func (Release) Compress(ctx context.Context) error { // Runs compressing in parallel since upx is single-threaded errs.Go(func() error { + runAndStreamOutput("chmod", "+x", path) // Make sure all binaries are executable. Sometimes the CI does weired things and they're not. runAndStreamOutput("upx", "-9", path) return nil })