mirror of
https://codeberg.org/tenacityteam/tenacity
synced 2025-10-09 18:22:36 +02:00
Fixes GTK packaging on Linux
This commit is contained in:
committed by
Avery King
parent
4fa6673464
commit
72fbf2662f
@@ -69,6 +69,8 @@ if create_path "linuxdeploy"; then
|
||||
(
|
||||
cd "linuxdeploy"
|
||||
download_linuxdeploy_component linuxdeploy continuous
|
||||
wget -q https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh
|
||||
chmod +x linuxdeploy-plugin-gtk.sh
|
||||
)
|
||||
fi
|
||||
|
||||
@@ -102,7 +104,7 @@ fi
|
||||
# Prevent linuxdeploy setting RUNPATH in binaries that shouldn't have it
|
||||
mv "${appdir}/bin/findlib" "${appdir}/../findlib"
|
||||
|
||||
linuxdeploy --appdir "${appdir}" # add all shared library dependencies
|
||||
linuxdeploy --appdir "${appdir}" --plugin gtk # add all shared library dependencies
|
||||
rm -Rf "${appdir}/lib/audacity"
|
||||
|
||||
if [ -f "/etc/debian_version" ]; then
|
||||
@@ -113,6 +115,7 @@ fi
|
||||
# Put the non-RUNPATH binaries back
|
||||
mv "${appdir}/../findlib" "${appdir}/bin/findlib"
|
||||
|
||||
mv "${appdir}/share/metainfo/audacity.appdata.xml" "${appdir}/share/metainfo/org.audacityteam.Audacity.appdata.xml"
|
||||
##########################################################################
|
||||
# BUNDLE REMAINING DEPENDENCIES MANUALLY
|
||||
##########################################################################
|
||||
|
@@ -1258,6 +1258,7 @@ else()
|
||||
|
||||
add_executable(findlib ../linux/findlib.c)
|
||||
target_link_libraries(findlib ${CMAKE_DL_LIBS})
|
||||
set_target_property_all( findlib SKIP_BUILD_RPATH On )
|
||||
endif()
|
||||
|
||||
set_target_property_all( ${TARGET} RUNTIME_OUTPUT_NAME ${APP_NAME} )
|
||||
|
Reference in New Issue
Block a user