e7466ddbc6
The file now passes flatpak run org.freedesktop.appstream.cli validate --strict --explain package/org.flightgear.FlightGear.metainfo.xml.in except for the placeholders in the <release/> tag
23 lines
874 B
CMake
23 lines
874 B
CMake
|
|
# this is the timestampe of when we ran Cmake, we could
|
|
# switch to parsing this from flightgear/version file explicity,
|
|
# but it's only needed by AppStream metainfo for the moment
|
|
|
|
string(TIMESTAMP FG_CMAKE_TIMESTAMP "%Y-%m-%d")
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
# our .desktop file specifies --launcher, so only install it for
|
|
# a build with the launcher enabled.
|
|
if (ENABLE_QT)
|
|
install(FILES org.flightgear.FlightGear.desktop DESTINATION share/applications)
|
|
endif()
|
|
|
|
# generate a metainfo file corresponding to this release
|
|
configure_file (
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/org.flightgear.FlightGear.metainfo.xml.in"
|
|
"${CMAKE_CURRENT_BINARY_DIR}/org.flightgear.FlightGear.metainfo.xml"
|
|
)
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/org.flightgear.FlightGear.metainfo.xml" DESTINATION share/metainfo)
|
|
|
|
endif()
|