From 15ecc9ed00199f1fbfe0989d67a43ff3e6faff6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= Date: Wed, 15 Nov 2023 21:05:54 +0100 Subject: [PATCH] Restore executable permissions on Unix release tarball binaries These changes resolve #575 by setting the OxiPNG binary that's about to be put in a release tarball to be world-executable during the release workflow, as such permissions are lost when fetching them from artifacts. --- .github/workflows/deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8207ef60..a076f951 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -67,6 +67,12 @@ jobs: *) cp ../LICENSE "$ARCHIVE_NAME" cp oxipng "$ARCHIVE_NAME" + # Execute permissions are not stored in artifact files, + # so make the binary world-executable to meet user + # expectations set by preceding releases. + # Related issue: + # https://github.com/shssoichiro/oxipng/issues/575 + chmod ugo+x "$ARCHIVE_NAME"/oxipng tar -vczf "${ARCHIVE_NAME}.tar.gz" "$ARCHIVE_NAME"/*;; esac