Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,10 @@ jobs:
VERSION: ${{ needs.version.outputs.version }}
run: |
sudo apt-get update
sudo apt-get install -y desktop-file-utils ./dist/*.deb
sudo apt-get install -y desktop-file-utils appstream ./dist/*.deb
test -x /usr/bin/freizeichen
desktop-file-validate /usr/share/applications/freizeichen.desktop
appstreamcli validate --no-net /usr/share/metainfo/de.codeforfire.freizeichen.metainfo.xml
tar -tzf "dist/freizeichen-${VERSION}-linux-x64.tar.gz" | grep -qx "freizeichen-${VERSION}/Freizeichen"

- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
Expand Down
54 changes: 54 additions & 0 deletions packaging/linux/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,60 @@ Categories=Network;Telephony;
MimeType=x-scheme-handler/tel;
DESKTOP

# AppStream metadata: GNOME Software and KDE Discover read the licence, summary and age rating of
# an installed app from here; without it they report an unknown, possibly proprietary licence.
# The id is the reverse-DNS name macOS uses as well; the launchable ties it to the entry above.
# (A .deb not yet installed still shows an unknown licence: PackageKit's apt backend reports
# "unknown" for every package, whatever the package carries.)
# The screenshots are the README's (ReadmeScreenshotTests), fetched by the software centre from
# GitHub: a release points at its own tag, a dev build, which has none, at main.
case "$VERSION" in
0.0.0-dev.*) SCREENSHOT_REF=main ;;
*) SCREENSHOT_REF="v${VERSION}" ;;
esac
SCREENSHOTS="https://raw.githubusercontent.com/CodeForFire/freizeichen/${SCREENSHOT_REF}/docs/screenshots"
install -d "$ROOT/usr/share/metainfo"
cat > "$ROOT/usr/share/metainfo/de.codeforfire.freizeichen.metainfo.xml" <<METAINFO
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>de.codeforfire.freizeichen</id>
<name>Freizeichen</name>
<summary>Wählt tel:-Links über ein Gigaset DL500A per Bluetooth</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT</project_license>
<developer id="de.codeforfire">
<name>CodeForFire</name>
</developer>
<description>
<p>
Freizeichen wird zum Standardprogramm für tel:-Links und wählt die Nummer über die
serielle Bluetooth-Schnittstelle eines Gigaset DL500A. Vor jedem Anruf zeigt es die Nummer
zur Bestätigung.
</p>
</description>
<launchable type="desktop-id">freizeichen.desktop</launchable>
<url type="homepage">https://github.com/CodeForFire/freizeichen</url>
<url type="bugtracker">https://github.com/CodeForFire/freizeichen/issues</url>
<provides>
<mediatype>x-scheme-handler/tel</mediatype>
</provides>
<screenshots>
<screenshot type="default">
<caption>Vor dem Wählen bestätigen</caption>
<image>${SCREENSHOTS}/dial.png</image>
</screenshot>
<screenshot>
<caption>Telefon einrichten und testen</caption>
<image>${SCREENSHOTS}/settings.png</image>
</screenshot>
</screenshots>
<content_rating type="oars-1.1"/>
<releases>
<release version="${VERSION}" date="$(date -u +%Y-%m-%d)"/>
</releases>
</component>
METAINFO

cat > "$ROOT/usr/share/doc/freizeichen/copyright" <<'COPYRIGHT'
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Freizeichen
Expand Down
Loading