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
+