Update and modernize linux metadata files

* Switch to using org.kicad.kicad as the main app ID
* Move the appstream file to a metainfo file
* Rename all metadata files to use the reverse DNS scheme
* Add header matching to mime type files where possible
* Add a mime type for gerber job files
* Add a QA test that verifies all the linux metadata files and
  run it in CI
* Update the visible names in the launcher entries to be more
  consistent with the internal visible names
* Update various strings and items in the metainfo file so they
  are more descriptive and easier to read
This commit is contained in:
Ian McInerney
2021-04-15 16:34:12 +00:00
parent 311bb9c36e
commit 4fc41627e9
35 changed files with 752 additions and 156 deletions
@@ -22,7 +22,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
#
# This file will configure the linux appdata.xml file to include the version
# This file will configure the linux metainfo.xml file to include the version
# and build date.
# It requires the following variables to be defined before its call:
@@ -38,12 +38,12 @@ include( ${CMAKE_MODULE_PATH}/KiCadFullVersion.cmake )
# Create the date of the configure
string( TIMESTAMP KICAD_CONFIG_TIMESTAMP "%Y-%m-%d" )
# Configure the KiCad appdata file
configure_file( ${SRC_PATH}/resources/linux/appdata/kicad.appdata.xml.in
${BUILD_PATH}/resources/linux/appdata/kicad.appdata.xml.in
# Configure the KiCad metainfo file
configure_file( ${SRC_PATH}/resources/linux/metainfo/org.kicad.kicad.metainfo.xml.in
${BUILD_PATH}/resources/linux/metainfo/org.kicad.kicad.metainfo.xml.in
@ONLY )
# Ensure the file was configured successfully
if( NOT EXISTS ${BUILD_PATH}/resources/linux/appdata/kicad.appdata.xml.in )
message( FATAL_ERROR "Configuration failed to write file kicad.appdata.xml.in" )
if( NOT EXISTS ${BUILD_PATH}/resources/linux/metainfo/org.kicad.kicad.metainfo.xml.in )
message( FATAL_ERROR "Configuration failed to write file org.kicad.kicad.metainfo.xml.in" )
endif()