LIBMAN: added lib cleanup + test
Some checks are pending
Build RetroDECK / Build_RetroDECK (push) Waiting to run
Build RetroDECK / GitHub-publish (push) Blocked by required conditions
Build RetroDECK / Automated_Tests (push) Blocked by required conditions

This commit is contained in:
XargonWan 2025-01-15 12:14:45 +09:00
parent 7ea37c4d4f
commit c145f56bc9

View file

@ -12,6 +12,8 @@ excluded_libraries=("libselinux.so.1")
excluded_libraries+=("libQt6Multimedia.so.6" "libQt6Core.so.6" "libQt6DBus.so.6" "libQt6Gui.so.6" "libQt6OpenGL.so.6" "libQt6Svg.so.6" "libQt6WaylandClient.so.6" "libQt6WaylandEglClientHwIntegration.so.6" "libQt6Widgets.so.6" "libQt6XcbQpa.so.6")
# SDL libraries
excluded_libraries+=("libSDL2_net-2.0.so.0.200.0" "libSDL2_mixer-2.0.so.0.600.3" "libSDL2-2.0.so.0" "libSDL2_mixer-2.0.so.0" "libSDL2_image-2.0.so.0" "libSDL2-2.0.so.0.2800.5" "libSDL2_ttf-2.0.so.0" "libSDL2_net-2.0.so.0" "libSDL2_image-2.0.so.0.600.3" "libSDL2_ttf-2.0.so.0.2200.0")
# TEST
excluded_libraries+=("libwayland-egl.so.1" "libwayland-cursor.so.0" "libxkbcommon.so.0")
# Add libraries from /lib/x86_64-linux-gnu/ to the excluded list
for lib in /lib/x86_64-linux-gnu/*.so*; do
@ -166,4 +168,12 @@ if [ ${#failed_files[@]} -ne 0 ]; then
done
fi
# Remove excluded libraries from the target directory
for excluded in "${excluded_libraries[@]}"; do
if [ -e "$target_dir/$excluded" ]; then
rm -f "$target_dir/$excluded"
echo "Deleted excluded library $target_dir/$excluded"
fi
done
echo "LibMan is flying away"