mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-11-02 20:13:58 +00:00
972860ac8f
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
16 lines
468 B
Bash
Executable File
16 lines
468 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
which optipng || exit
|
|
NPROC=$(nproc 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4)
|
|
|
|
# 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 {}
|