diff --git a/dashboard/CMakeLists.txt b/dashboard/CMakeLists.txt index 8cc2f32a..47789a2b 100644 --- a/dashboard/CMakeLists.txt +++ b/dashboard/CMakeLists.txt @@ -25,6 +25,7 @@ target_compile_features(wivrn-dashboard PRIVATE cxx_std_20) target_include_directories(wivrn-dashboard PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) configure_file(gui_config.h.in gui_config.h) +configure_file(io.github.wivrn.wivrn.desktop.in io.github.wivrn.wivrn.desktop) target_link_libraries(wivrn-dashboard PRIVATE wivrn-common @@ -39,3 +40,16 @@ file(GLOB TRANSLATION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/wivrn_*.ts) qt_add_translations(wivrn-dashboard TS_FILES ${TRANSLATION_FILES}) install(TARGETS wivrn-dashboard) + +install(FILES 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 ${CMAKE_CURRENT_BINARY_DIR}/io.github.wivrn.wivrn.desktop + DESTINATION share/applications +) diff --git a/dashboard/io.github.wivrn.wivrn.desktop.in b/dashboard/io.github.wivrn.wivrn.desktop.in new file mode 100644 index 00000000..aa8115db --- /dev/null +++ b/dashboard/io.github.wivrn.wivrn.desktop.in @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=WiVRn server +Comment=Play your PC VR games on a standalone headset +GenericName=WiVRn server +Exec=@CMAKE_INSTALL_PREFIX@/bin/wivrn-dashboard +Icon=io.github.wivrn.wivrn +Type=Application +Categories=Network;Game diff --git a/flatpak/io.github.wivrn.wivrn.metainfo.xml b/dashboard/io.github.wivrn.wivrn.metainfo.xml similarity index 100% rename from flatpak/io.github.wivrn.wivrn.metainfo.xml rename to dashboard/io.github.wivrn.wivrn.metainfo.xml diff --git a/flatpak/io.github.wivrn.wivrn.yml b/flatpak/io.github.wivrn.wivrn.yml index eb52d81d..4586b98c 100644 --- a/flatpak/io.github.wivrn.wivrn.yml +++ b/flatpak/io.github.wivrn.wivrn.yml @@ -170,6 +170,8 @@ modules: - type: shell commands: - cd deps/monado-src && ../../patches/apply.sh ../../patches/monado + build-commands: + - 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 c14f2c4c..e0073eef 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -221,16 +221,3 @@ 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 -)