Make sure built binary files are executable when compressing with upx

This commit is contained in:
kolaente 2020-09-03 22:45:04 +02:00
parent bb26c9d97c
commit b64a80da0b
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -578,6 +578,7 @@ func (Release) Compress(ctx context.Context) error {
// Runs compressing in parallel since upx is single-threaded // Runs compressing in parallel since upx is single-threaded
errs.Go(func() error { 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) runAndStreamOutput("upx", "-9", path)
return nil return nil
}) })