Install metainfo, desktop and icon as part of the dashboard instead of the server
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user