From fe0e8ba3799bfc52e1f159abae0a38644a4ea150 Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Sat, 8 Feb 2025 17:13:07 -0500 Subject: [PATCH] Remove libgallium from the appimage (#7693) * Remove libgallium from the appimage * Remove "optional" directory from AppImage --- cmake/linux/LinuxDeploy.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/linux/LinuxDeploy.cmake b/cmake/linux/LinuxDeploy.cmake index 974c1d272..e5f398fd1 100644 --- a/cmake/linux/LinuxDeploy.cmake +++ b/cmake/linux/LinuxDeploy.cmake @@ -160,6 +160,8 @@ foreach(_lib IN LISTS LIBS) endif() endforeach() +list(APPEND SKIP_LIBRARIES "--exclude-library=*libgallium*") + # Call linuxdeploy message(STATUS "Calling ${LINUXDEPLOY_BIN} --appdir \"${APP}\" ... [... libraries].") execute_process(COMMAND "${LINUXDEPLOY_BIN}" @@ -167,6 +169,7 @@ execute_process(COMMAND "${LINUXDEPLOY_BIN}" --desktop-file "${DESKTOP_FILE}" --plugin qt ${LIBRARIES} + ${SKIP_LIBRARIES} --verbosity ${VERBOSITY} ${OUTPUT_QUIET} COMMAND_ECHO ${COMMAND_ECHO} @@ -266,6 +269,9 @@ if(relocated_jack) endif() endif() +# cleanup empty directories +file(REMOVE_RECURSE "${APP}/usr/lib/${lmms}/optional/") + if(CPACK_TOOL STREQUAL "appimagetool") # Create ".AppImage" file using appimagetool (default)