Skip to content

Commit

Permalink
Restore executable permissions on Unix release tarball binaries (shss…
Browse files Browse the repository at this point in the history
…oichiro#577)

These changes resolve shssoichiro#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.
  • Loading branch information
AlexTMjugador authored and Pr0methean committed Dec 1, 2023
1 parent b520019 commit 14e7478
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14e7478

Please sign in to comment.