summaryrefslogtreecommitdiff
path: root/indra/newview/ViewerInstall.cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-07-24 16:19:52 +0800
committerErik Kundiman <erik@megapahit.org>2026-07-24 16:19:52 +0800
commitc4a00d17a5fa81b53c3b88b5eeb9ae7e58ef92f4 (patch)
treeac25a1faeb35612bd14c116a82823c6002d2875e /indra/newview/ViewerInstall.cmake
parent3da3b4c0827d9f47ff073f5b25ab430c05e49899 (diff)
Basic initial metainfo file for Flatpak
This file could also be in the "flatpak" repo instead. We'll see.
Diffstat (limited to 'indra/newview/ViewerInstall.cmake')
-rw-r--r--indra/newview/ViewerInstall.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/ViewerInstall.cmake b/indra/newview/ViewerInstall.cmake
index d2e327dfd5..273c0df3af 100644
--- a/indra/newview/ViewerInstall.cmake
+++ b/indra/newview/ViewerInstall.cmake
@@ -351,6 +351,15 @@ if (USE_FLATPAK)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/net.${VIEWER_BINARY_NAME}.Viewer.desktop
DESTINATION share/applications
)
+ string(TIMESTAMP TODAY_DATE "%Y-%m-%d" UTC)
+ configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/net.megapahit.Viewer.metainfo.xml.in
+ ${CMAKE_CURRENT_BINARY_DIR}/net.megapahit.Viewer.metainfo.xml
+ )
+ install(
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/net.megapahit.Viewer.metainfo.xml
+ DESTINATION share/metainfo
+ )
else ()
install(FILES linux_tools/${VIEWER_BINARY_NAME}.desktop
DESTINATION share/applications