This commit is contained in:
endernon 2024-12-08 20:34:24 +00:00
parent 5c550c8b26
commit 6ab609b753

View file

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
# enable globbing properly
shopt -s extglob
# create the build dir if it doesn't already exist # create the build dir if it doesn't already exist
mkdir -p ./build mkdir -p ./build
@ -30,7 +32,7 @@ if [[ -e oxipng.tar.gz ]]; then
mv ./oxipng* ./oxipngdir mv ./oxipng* ./oxipngdir
mv ./oxipngdir/oxipng ./oxipng mv ./oxipngdir/oxipng ./oxipng
chmod +x oxipng chmod +x oxipng
oxipng -o max --strip all --alpha **/*.png oxipng -o max --strip all --alpha $(find . -name "*.png" -type f)
fi fi
# remove all the gimp files (those don't do anything in the final build) # remove all the gimp files (those don't do anything in the final build)