Skip to content

Commit 78e6203

Browse files
committed
chore: add appdata metainfo
- add metainfo.xml file - add screenshot files - update CMakeLists.txt to update and install metainfo - note: screenshot URLs should be changed once this PR is merged and images are available in the github repository Signed-off-by: letsfindaway <me@letsfindaway.de>
1 parent 57a2557 commit 78e6203

6 files changed

Lines changed: 72 additions & 2 deletions

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.16)
44
# OpenBoard cmake build file
55
#
66
# Most important configuration variables:
7-
# CMAKE_INSTALL_PREFIX
7+
# CMAKE_INSTALL_PREFIX
88
# Path to install prefix, defaults to /usr/local (see cmake documentation)
99
# Typically set to /usr or /opt
1010
# QT_VERSION
@@ -75,7 +75,9 @@ set(OPENBOARD_ICON_FILE resources/images/ch.openboard.OpenBoard.svg)
7575
set(OPENBOARD_DESKTOP_FILE resources/linux/ch.openboard.OpenBoard.desktop)
7676
set(OPENBOARD_MIMETYPE_FILE resources/linux/ch.openboard.openboard-ubz.xml)
7777
set(OPENBOARD_MIMEICON_FILE resources/linux/ch.openboard.application-ubz.svg)
78+
set(OPENBOARD_METAINFO_FILE resources/linux/ch.openboard.OpenBoard.metainfo.xml)
7879

80+
configure_file("${OPENBOARD_METAINFO_FILE}.in" ${OPENBOARD_METAINFO_FILE})
7981

8082
# ==========================================================================
8183
# Basic compiler settings
@@ -86,7 +88,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
8688
set(CMAKE_AUTOMOC ON)
8789
set(CMAKE_AUTOUIC ON)
8890

89-
list(APPEND CMAKE_AUTOUIC_SEARCH_PATHS
91+
list(APPEND CMAKE_AUTOUIC_SEARCH_PATHS
9092
${OPENBOARD_FORMS_DIR}
9193
)
9294

@@ -225,6 +227,7 @@ install(FILES ${OPENBOARD_ICON_FILE} DESTINATION ${CMAKE_INSTALL_DATA
225227
install(FILES ${OPENBOARD_DESKTOP_FILE} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
226228
install(FILES ${OPENBOARD_MIMETYPE_FILE} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/mime/packages)
227229
install(FILES ${OPENBOARD_MIMEICON_FILE} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/mimetypes)
230+
install(FILES ${CMAKE_BINARY_DIR}/${OPENBOARD_METAINFO_FILE} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo)
228231

229232

230233
# ==========================================================================

cmake/Version.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ endif()
3030

3131
if(version MATCHES "VERSION_BUILD *= *([0-9]+)")
3232
set(VERSION_BUILD ${CMAKE_MATCH_1})
33+
string(SUBSTRING ${VERSION_BUILD} 0 2 RELEASE_YEAR)
34+
string(SUBSTRING ${VERSION_BUILD} 2 2 RELEASE_MONTH)
35+
string(SUBSTRING ${VERSION_BUILD} 4 2 RELEASE_DAY)
3336
elseif(NOT VERSION_TYPE STREQUAL "r")
3437
set(VERSION_ERROR "VERSION_BUILD")
3538
endif()
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- Copyright 2019 Jonah Brüchert -->
3+
<component type="desktop-application">
4+
<id>ch.openboard.OpenBoard</id>
5+
<name>OpenBoard</name>
6+
<summary>Interactive whiteboard for schools and universities</summary>
7+
<summary xml:lang="es">Cuadro blanco interactivo para escuelas y universidades</summary>
8+
<summary xml:lang="nb">Interaktiv tavle for skoler og universiteter</summary>
9+
<summary xml:lang="pt_BR">Quadro branco interativo para escolas e universidades</summary>
10+
<summary xml:lang="de">Interaktives Whiteboard für Schulen und Universitäten</summary>
11+
<summary xml:lang="fr">Tableau blanc interactif pour écoles et universités</summary>
12+
<summary xml:lang="it">Lavagna interattiva per la scuola e l'università</summary>
13+
<project_license>GPL-3.0-only</project_license>
14+
<metadata_license>CC0-1.0</metadata_license>
15+
<developer id="ch.ge.edu">
16+
<name>Département de l'Instruction Publique (DIP-SEM)</name>
17+
</developer>
18+
<description>
19+
<p>OpenBoard is an open source cross-platform teaching software for interactive whiteboard designed primarily for use in schools and universities. It can be used both with interactive whiteboards or in a dual-screen setup with a pen-tablet display and a projector. It can also be used on your computer without any additional hardware.</p>
20+
<p xml:lang="es">OpenBoard es un software de enseñanza de plataforma cruzada de código abierto para cuadros interactivos diseñado principalmente para uso en escuelas y universidades. Se puede utilizar con marcos interactivos o en una configuración de pantalla dual con un monitor de escritorio gráfico y un proyector.</p>
21+
<p xml:lang="nb">OpenBoard er et kryssplattform og åpen kildekode undervisningsprogram for interaktive tavler, spesielt designet for bruk i skoler og universiteter. Det kan brukes både med interaktive tavler eller i et dobbelt skjermoppsett med tegnebrett med skjerm og projektor.</p>
22+
<p xml:lang="pt_BR">O OpenBoard é um software de ensino de plataforma cruzada de código aberto para quadros interativos projetado principalmente para uso em escolas e universidades. Ele pode ser usado com quadros interativos ou em uma configuração de tela dupla com um monitor de mesa gráfica e um projetor.</p>
23+
<p xml:lang="de">OpenBoard ist ein interaktives Open-Source-Whiteboard für den Einsatz in Schulen oder Universitäten. Es kann entweder mit einem interaktiven Whiteboard oder in einer Dual-Screen-Konfiguration mit einem digitalen Tablet und einem Beamer verwendet werden. Auch der Einsatz ohne zusätzliche externe Hardware ist möglich.</p>
24+
<p xml:lang="fr">OpenBoard est un logiciel d’enseignement interactif pour TNI open source conçu pour être utilisé dans les écoles ou universités. Il peut être utilisé indifféremment avec un tableau blanc interactif ou dans une configuration à double écran avec tablette numérique et un beamer. Il peut aussi être utilisé sur votre ordinateur, sans aucun matériel supplémentaire.</p>
25+
<p xml:lang="it">OpenBoard è un'applicazione di lavagna interattiva open source e multipiattaforma progettata principalmente per l'uso nelle scuole e nelle università. Può essere usata sia con lavagne interattive che con uno schermo tavoletta a penna, con o senza un'impostazione a doppio schermo, ed un proiettore.</p>
26+
</description>
27+
<url type="homepage">https://www.openboard.ch</url>
28+
<url type="bugtracker">https://github.com/OpenBoard-org/OpenBoard/issues</url>
29+
<url type="help">https://openboard.ch/support.en.html</url>
30+
<url type="translate">https://github.com/OpenBoard-org/openboard/pulls</url>
31+
<content_rating type="oars-1.0"/>
32+
<translation type="qt">OpenBoard</translation>
33+
<launchable type="desktop-id">ch.openboard.OpenBoard.desktop</launchable>
34+
<supports>
35+
<control>pointing</control>
36+
<control>keyboard</control>
37+
<control>touch</control>
38+
<control>tablet</control>
39+
</supports>
40+
<screenshots>
41+
<screenshot type="default">
42+
<caption>Board mode</caption>
43+
<image type="source">https://github.com/flathub/ch.openboard.OpenBoard/blob/fix-screenshots/screenshots/ch.openboard.OpenBoard-227c6881013a1d904aca1a358400f3bd.png?raw=true</image>
44+
</screenshot>
45+
<screenshot>
46+
<caption>Web browser</caption>
47+
<image type="source">https://github.com/flathub/ch.openboard.OpenBoard/blob/fix-screenshots/screenshots/ch.openboard.OpenBoard-b93e95fc23edb6b9f70e571bc3e17b87.png?raw=true</image>
48+
</screenshot>
49+
<screenshot>
50+
<caption>File browser</caption>
51+
<image type="source">https://github.com/flathub/ch.openboard.OpenBoard/blob/fix-screenshots/screenshots/ch.openboard.OpenBoard-5d3ef7e025a1a382c1ed92fba185087a.png?raw=true</image>
52+
</screenshot>
53+
</screenshots>
54+
<releases>
55+
<release version="${VERSION}" date="20${RELEASE_YEAR}-${RELEASE_MONTH}-${RELEASE_DAY}">
56+
<description>
57+
<p>See <a href="https://github.com/OpenBoard-org/OpenBoard/releases/tag/v${VERSION}">Release notes</a> for details about this version.</p>
58+
</description>
59+
</release>
60+
</releases>
61+
<provides>
62+
<binary>openboard</binary>
63+
</provides>
64+
</component>
152 KB
Loading
173 KB
Loading
287 KB
Loading

0 commit comments

Comments
 (0)