forked from qt-creator/qt-creator
Add more information to appdata xml
- Add oars content rating to appdata xml - Add screenshots to appdata xml - Add release info Change-Id: I61bf023814149983f7a64e03f49eb8d998dac85b Reviewed-by: Youri Westerman <tetracon@gmail.com> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
committed by
Eike Ziller
parent
b92acd3e8e
commit
103aa8be7c
@@ -27,6 +27,7 @@ qtc_handle_sccache_support()
|
||||
option(WITH_TESTS "Build Tests" OFF)
|
||||
add_feature_info("Build tests" ${WITH_TESTS} "")
|
||||
option(WITH_DEBUG_CMAKE "Enabled CMake project debugging functionality (e.g. source file disk checking)" OFF)
|
||||
option(SHOW_BUILD_DATE "Show build date in about dialog" OFF)
|
||||
|
||||
# merge binary directories of sub projects into top level
|
||||
set(QTC_MERGE_BINARY_DIR ON)
|
||||
|
@@ -98,16 +98,6 @@ else: PLATFORM = "unknown"
|
||||
BASENAME = $$(INSTALL_BASENAME)
|
||||
isEmpty(BASENAME): BASENAME = qt-creator-$${PLATFORM}$(INSTALL_EDITION)-$${QTCREATOR_VERSION}$(INSTALL_POSTFIX)
|
||||
|
||||
linux {
|
||||
appstream.files = share/metainfo/org.qt-project.qtcreator.appdata.xml
|
||||
appstream.path = $$QTC_PREFIX/share/metainfo/
|
||||
|
||||
desktop.files = share/applications/org.qt-project.qtcreator.desktop
|
||||
desktop.path = $$QTC_PREFIX/share/applications/
|
||||
|
||||
INSTALLS += appstream desktop
|
||||
}
|
||||
|
||||
macx {
|
||||
APPBUNDLE = "$$OUT_PWD/bin/$${IDE_APP_TARGET}.app"
|
||||
BINDIST_SOURCE.release = "$$OUT_PWD/bin/$${IDE_APP_TARGET}.app"
|
||||
|
@@ -1,11 +1,23 @@
|
||||
add_subdirectory(qtcreator)
|
||||
|
||||
if (NOT APPLE AND NOT WIN32)
|
||||
set(DATE_ATTRIBUTE)
|
||||
if(SHOW_BUILD_DATE)
|
||||
string(TIMESTAMP timestamp "%Y-%m-%d")
|
||||
set(DATE_ATTRIBUTE " date=\"${timestamp}\"")
|
||||
endif()
|
||||
configure_file(metainfo/org.qt-project.qtcreator.appdata.xml.cmakein metainfo/org.qt-project.qtcreator.appdata.xml)
|
||||
|
||||
install(
|
||||
DIRECTORY
|
||||
applications
|
||||
metainfo
|
||||
DESTINATION
|
||||
${CMAKE_INSTALL_DATAROOTDIR}
|
||||
)
|
||||
install(
|
||||
FILES
|
||||
${CMAKE_CURRENT_BINARY_DIR}/metainfo/org.qt-project.qtcreator.appdata.xml
|
||||
DESTINATION
|
||||
${CMAKE_INSTALL_DATAROOTDIR}/metainfo/
|
||||
)
|
||||
endif()
|
||||
|
@@ -26,4 +26,20 @@
|
||||
|
||||
<url type="homepage">https://www.qt.io/ide/</url>
|
||||
<project_group>Qt</project_group>
|
||||
<content_rating type="oars-1.1" />
|
||||
<screenshots>
|
||||
<screenshot>
|
||||
<image>https://doc.qt.io/qtcreator/images/qtcreator-breakdown.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<image>https://doc.qt.io/qtcreator/images/qtcreator-qt-quick-editors.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<releases>
|
||||
<release version="${IDE_VERSION_DISPLAY}"${DATE_ATTRIBUTE}>
|
||||
<description>
|
||||
<p>Qt Creator v${IDE_VERSION_DISPLAY}</p>
|
||||
</description>
|
||||
</release>
|
||||
</releases>
|
||||
</component>
|
@@ -1,6 +1,23 @@
|
||||
TEMPLATE = subdirs
|
||||
SUBDIRS = qtcreator/static.pro
|
||||
|
||||
include(../qtcreator.pri)
|
||||
|
||||
linux {
|
||||
appdata = $$cat($$PWD/metainfo/org.qt-project.qtcreator.appdata.xml.cmakein, blob)
|
||||
appdata = $$replace(appdata, \\$\\{IDE_VERSION_DISPLAY\\}, $$QTCREATOR_DISPLAY_VERSION)
|
||||
appdata = $$replace(appdata, \\$\\{DATE_ATTRIBUTE\\}, "")
|
||||
write_file($$OUT_PWD/metainfo/org.qt-project.qtcreator.appdata.xml, appdata)
|
||||
|
||||
appstream.files = $$OUT_PWD/metainfo/org.qt-project.qtcreator.appdata.xml
|
||||
appstream.path = $$QTC_PREFIX/share/metainfo/
|
||||
|
||||
desktop.files = share/applications/org.qt-project.qtcreator.desktop
|
||||
desktop.path = $$QTC_PREFIX/share/applications/
|
||||
|
||||
INSTALLS += appstream desktop
|
||||
}
|
||||
|
||||
defineTest(hasLupdate) {
|
||||
cmd = $$eval(QT_TOOL.lupdate.binary)
|
||||
isEmpty(cmd) {
|
||||
|
@@ -1,5 +1,3 @@
|
||||
option(SHOW_BUILD_DATE "Show build date in about dialog" OFF)
|
||||
|
||||
add_qtc_plugin(Core
|
||||
DEPENDS Qt5::PrintSupport Qt5::Qml Qt5::Sql Qt5::Gui Qt5::GuiPrivate
|
||||
PUBLIC_DEPENDS Aggregation ExtensionSystem Utils app_version
|
||||
|
Reference in New Issue
Block a user