From 1793622a54f73db11b4167d62130c94d5bea248c Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Fri, 23 Aug 2024 23:22:04 +0200 Subject: [PATCH] Install desktop and icon files in CMakeLists instead of flatpak manifest --- flatpak/io.github.wivrn.wivrn.yml | 4 ---- server/CMakeLists.txt | 17 +++++++++++++++-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/flatpak/io.github.wivrn.wivrn.yml b/flatpak/io.github.wivrn.wivrn.yml index d0f0819e..93c51288 100644 --- a/flatpak/io.github.wivrn.wivrn.yml +++ b/flatpak/io.github.wivrn.wivrn.yml @@ -166,10 +166,6 @@ modules: - type: shell commands: - cd deps/monado-src && ../../patches/apply.sh ../../patches/monado - build-commands: - - install -DTm644 images/wivrn.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/io.github.wivrn.wivrn.svg - - install -Dm644 flatpak/io.github.wivrn.wivrn.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo - - install -Dm644 flatpak/io.github.wivrn.wivrn.desktop -t ${FLATPAK_DEST}/share/applications - name: opencomposite buildsystem: cmake-ninja diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index 1c2b7300..0f9f5656 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -181,9 +181,9 @@ set_target_properties(${RUNTIME_TARGET} PROPERTIES EXCLUDE_FROM_ALL FALSE) set(_extra_args) if(WIVRN_OPENXR_INSTALL_ABSOLUTE_RUNTIME_PATH) -set(_extra_args ABSOLUTE_RUNTIME_PATH) + set(_extra_args ABSOLUTE_RUNTIME_PATH) else() -set(_extra_args RUNTIME_DIR_RELATIVE_TO_MANIFEST ../../../${CMAKE_INSTALL_LIBDIR}/wivrn) + set(_extra_args RUNTIME_DIR_RELATIVE_TO_MANIFEST ../../../${CMAKE_INSTALL_LIBDIR}/wivrn) endif() generate_openxr_runtime_manifest_at_install( @@ -198,3 +198,16 @@ install(TARGETS ${RUNTIME_TARGET} monado LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/wivrn COMPONENT Runtime) + +install(FILES ../flatpak/io.github.wivrn.wivrn.metainfo.xml + DESTINATION share/metainfo +) + +install(FILES ../images/wivrn.svg + DESTINATION share/icons/hicolor/scalable/apps + RENAME io.github.wivrn.wivrn.svg +) + +install(FILES ../flatpak/io.github.wivrn.wivrn.desktop + DESTINATION share/applications +)