Install desktop and icon files in CMakeLists instead of flatpak manifest
This commit is contained in:
@@ -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
|
||||
|
||||
+15
-2
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user