Browse Source

[tools] fix optimize-assets not being multithreaded due to -print0

Signed-off-by: lizzie <lizzie@eden-emu.dev>
pull/2887/head
lizzie 3 months ago
parent
commit
a3fe0d68ae
No known key found for this signature in database GPG Key ID: 287378CADCAB13
  1. 4
      tools/optimize-assets.sh

4
tools/optimize-assets.sh

@ -2,4 +2,6 @@
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later
which optipng || exit
find . -type f -iname '*.png' -print0 | xargs -0 -P 16 -I {} optipng -o7 {}
NPROC=$(nproc)
[ -z "$NPROC" ] && NPROC=8
find . -type f -iname '*.png' | xargs -P $NPROC -I {} optipng -o7 {}
Loading…
Cancel
Save