mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-11-02 12:07:02 +00:00
[dist] reoptimize assets, and add svg optimization (#4537)
Co-authored-by: GreenStar <145512144+thegreatGreenstar@users.noreply.github.com> Signed-off-by: crueter <crueter@eden-emu.dev> - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md). - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4537
This commit is contained in:
@@ -8,3 +8,8 @@ NPROC=$(nproc 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null || sysctl -n
|
||||
|
||||
# shellcheck disable=SC2038
|
||||
find . -type f -iname '*.png' | xargs -P "$NPROC" -I {} optipng -o7 {}
|
||||
|
||||
which svgo || exit
|
||||
|
||||
# shellcheck disable=SC2038
|
||||
find . -type f -iname '*.svg' | xargs -P "$NPROC" -I {} svgo {}
|
||||
|
||||
Reference in New Issue
Block a user