mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-03 07:10:38 +01: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:
parent
3d3ed4b7d1
commit
972860ac8f
19 changed files with 18 additions and 2485 deletions
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue