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
No known key found for this signature in database
GPG Key ID: 287378CADCAB13
1 changed files with
3 additions and
1 deletions
-
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 {} |