mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 03:18:55 +02:00
[ci, tools] working find-unused-strings, android strings CI (#3036)
Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3036
This commit is contained in:
parent
4f389338bd
commit
eb2d9ea574
6 changed files with 56 additions and 13 deletions
|
|
@ -1,7 +1,10 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
which optipng || exit
|
||||
NPROC=$(nproc)
|
||||
[ -z "$NPROC" ] && NPROC=8
|
||||
find . -type f -iname '*.png' | xargs -P $NPROC -I {} optipng -o7 {}
|
||||
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 {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue