Skip to content

Commit

Permalink
Install imagemagick
Browse files Browse the repository at this point in the history
  • Loading branch information
melkypie authored Oct 16, 2024
1 parent 5f445ba commit 6f5351e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion execute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ chmod +x gradlew
# Dump the sprites using correct sizing
java -Dcache.folder="cache/" -Dcache.old=$OLD_CACHE -Dcache.new=$NEW_CACHE -jar shadow.jar dump

# From Ubuntu 24.04 image in Github actions imagemagick is no longer included by default
sudo apt update
sudo apt install -y imagemagick
# Add the changed/modified/deleted/renamed sprites to their respective directories
# Also perform a diff in case of modified
# May throw an error if the images are different widths
Expand Down Expand Up @@ -65,4 +68,4 @@ diffs=(${!diff[@]})

# Zip up the newest cache sprites and the diff folders
zip -qr $NEW_CACHE-sprites.zip $NEW_CACHE/sprites
zip -qr $OLD_CACHE--$NEW_CACHE-diff.zip added/ renamed/ modified/ deleted/
zip -qr $OLD_CACHE--$NEW_CACHE-diff.zip added/ renamed/ modified/ deleted/

0 comments on commit 6f5351e

Please sign in to comment.