mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-01 14:59:13 +00:00
[tools] fix optimize-assets not being multithreaded due to -print0 (#2887)
Signed-off-by: lizzie <[email protected]> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2887 Reviewed-by: crueter <[email protected]> Reviewed-by: Maufeat <[email protected]> Co-authored-by: lizzie <[email protected]> Co-committed-by: lizzie <[email protected]>
This commit is contained in:
1 parent
b50f8c620b
commit
c31761ab75
1 file changed
+3
-1
@@ -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 {}
|
||||
Reference in new issue
Block a user