From 0a988768ab3404cba8a9bc5fc1e814e4a7569995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= <7822554+AlexTMjugador@users.noreply.github.com> Date: Thu, 16 Nov 2023 00:24:04 +0100 Subject: [PATCH] Restore executable permissions on Unix release tarball binaries (#577) 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