From 853ae5ea6ec3a3b29bf48cf4e26c7e889b28f3cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= Date: Wed, 8 Feb 2023 12:11:50 +0100 Subject: [PATCH] UI: Set flathub::manifest Currently, the manifest URL on Flathub Beta website points to the deprecated manifest hosted on Flathub. The flathub::manifest key is undocumented attribute that will update the website to use the proper location. This key will not affect appstream other than providing enough information to the Flathub website. --- UI/xdg-data/CMakeLists.txt | 12 ++++++++++++ UI/xdg-data/com.obsproject.Studio.appdata.xml.in | 3 +++ 2 files changed, 15 insertions(+) diff --git a/UI/xdg-data/CMakeLists.txt b/UI/xdg-data/CMakeLists.txt index b57161e6d..1d348fad5 100644 --- a/UI/xdg-data/CMakeLists.txt +++ b/UI/xdg-data/CMakeLists.txt @@ -11,6 +11,18 @@ if(NOT DEFINED APPDATA_RELEASE_DATE) endif() endif() +if(NOT DEFINED GIT_HASH) + if(EXISTS "${CMAKE_SOURCE_DIR}/.git") + execute_process( + COMMAND git rev-parse HEAD + OUTPUT_VARIABLE GIT_HASH + WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" + OUTPUT_STRIP_TRAILING_WHITESPACE) + else() + set(GIT_HASH "master") + endif() +endif() + configure_file(com.obsproject.Studio.appdata.xml.in com.obsproject.Studio.appdata.xml) diff --git a/UI/xdg-data/com.obsproject.Studio.appdata.xml.in b/UI/xdg-data/com.obsproject.Studio.appdata.xml.in index b11b1afa0..1012bc001 100644 --- a/UI/xdg-data/com.obsproject.Studio.appdata.xml.in +++ b/UI/xdg-data/com.obsproject.Studio.appdata.xml.in @@ -43,4 +43,7 @@ + + https://github.com/obsproject/obs-studio/blob/@GIT_HASH@/CI/flatpak/com.obsproject.Studio.json +