diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 24f821c..8b981d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/packaging/linux/build-linux.sh b/packaging/linux/build-linux.sh index 996f99f..4e001df 100755 --- a/packaging/linux/build-linux.sh +++ b/packaging/linux/build-linux.sh @@ -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" < + + de.codeforfire.freizeichen + Freizeichen + Wählt tel:-Links über ein Gigaset DL500A per Bluetooth + CC0-1.0 + MIT + + CodeForFire + + +

+ 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. +

+
+ freizeichen.desktop + https://github.com/CodeForFire/freizeichen + https://github.com/CodeForFire/freizeichen/issues + + x-scheme-handler/tel + + + + Vor dem Wählen bestätigen + ${SCREENSHOTS}/dial.png + + + Telefon einrichten und testen + ${SCREENSHOTS}/settings.png + + + + + + +
+METAINFO + cat > "$ROOT/usr/share/doc/freizeichen/copyright" <<'COPYRIGHT' Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Freizeichen