From ff3816295f0d223d2c47a8be4ca9c523f88639a9 Mon Sep 17 00:00:00 2001 From: bgallois Date: Thu, 2 Sep 2021 17:58:49 +0200 Subject: [PATCH] [add] global: add AppStream metadata --- .github/workflows/build.yml | 9 +++--- .github/workflows/build_cli.yml | 8 ++--- ....desktop => sh.fasttrack.fasttrack.desktop | 9 ++++-- sh.fasttrack.fasttrack.metainfo.xml | 29 +++++++++++++++++++ ...sktop => sh.fasttrack.fasttrackcli.desktop | 9 ++++-- 5 files changed, 50 insertions(+), 14 deletions(-) rename FastTrack.desktop => sh.fasttrack.fasttrack.desktop (56%) create mode 100644 sh.fasttrack.fasttrack.metainfo.xml rename FastTrackCli.desktop => sh.fasttrack.fasttrackcli.desktop (58%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a5706d..1d4ea90 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,14 +41,15 @@ jobs: mkdir -p appdir/usr/bin/ mv FastTrack appdir/usr/bin/ mkdir -p appdir/usr/share/applications/ - cp ../FastTrack.desktop appdir/usr/share/applications/ + cp ../sh.fasttrack.fasttrack.desktop appdir/usr/share/applications/ mkdir -p appdir/usr/share/icons/hicolor/256x256/ - cp ../src/assets/icon.png appdir/usr/share/icons/hicolor/256x256/ - ./deploy.AppImage ./appdir/usr/share/applications/FastTrack.desktop -exclude-libs="libnss3.so,libnssutil3.so" -no-translations -bundle-non-qt-libs + cp ../src/assets/icon.png appdir/usr/share/icons/hicolor/256x256/fasttrack.png + ./deploy.AppImage ./appdir/usr/share/applications/sh.fasttrack.fasttrack.desktop -exclude-libs="libnss3.so,libnssutil3.so" -no-translations -bundle-non-qt-libs mkdir -p appdir/usr/optional/ ; wget -c https://github.com/darealshinji/AppImageKit-checkrt/releases/download/continuous/exec-x86_64.so -O ./appdir/usr/optional/exec.so mkdir -p appdir/usr/optional/libstdc++/ ; cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./appdir/usr/optional/libstdc++/ ; cp /usr/lib/gcc/x86_64-linux-gnu/9/libstdc++.so ./appdir/usr/optional/libstdc++/ + mkdir -p appdir/usr/share/metainfo/ ; cp ../sh.fasttrack.fasttrack.metainfo.xml appdir/usr/share/metainfo/ ( cd appdir ; rm AppRun ; wget -c https://github.com/darealshinji/AppImageKit-checkrt/releases/download/continuous/AppRun-patched-x86_64 -O AppRun ; chmod a+x AppRun) - ./deploy.AppImage ./appdir/usr/share/applications/FastTrack.desktop -appimage + ./deploy.AppImage ./appdir/usr/share/applications/sh.fasttrack.fasttrack.desktop -appimage mv FastTrack*.AppImage FastTrack-x86_64.AppImage - name: Linux artefact uses: actions/upload-artifact@v1 diff --git a/.github/workflows/build_cli.yml b/.github/workflows/build_cli.yml index ffeee29..74061a0 100644 --- a/.github/workflows/build_cli.yml +++ b/.github/workflows/build_cli.yml @@ -41,14 +41,14 @@ jobs: mkdir -p appdir/usr/bin/ mv fasttrack-cli appdir/usr/bin/ mkdir -p appdir/usr/share/applications/ - cp ../FastTrackCli.desktop appdir/usr/share/applications/ + cp ../sh.fasttrack.fasttrackcli.desktop appdir/usr/share/applications/ mkdir -p appdir/usr/share/icons/hicolor/256x256/ - cp ../src/assets/icon.png appdir/usr/share/icons/hicolor/256x256/ - ./deploy.AppImage ./appdir/usr/share/applications/FastTrackCli.desktop -exclude-libs="libnss3.so,libnssutil3.so" -no-translations -bundle-non-qt-libs + cp ../src/assets/icon.png appdir/usr/share/icons/hicolor/256x256/fasttrack.png + ./deploy.AppImage ./appdir/usr/share/applications/sh.fasttrack.fasttrackcli.desktop -exclude-libs="libnss3.so,libnssutil3.so" -no-translations -bundle-non-qt-libs mkdir -p appdir/usr/optional/ ; wget -c https://github.com/darealshinji/AppImageKit-checkrt/releases/download/continuous/exec-x86_64.so -O ./appdir/usr/optional/exec.so mkdir -p appdir/usr/optional/libstdc++/ ; cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./appdir/usr/optional/libstdc++/ ; cp /usr/lib/gcc/x86_64-linux-gnu/9/libstdc++.so ./appdir/usr/optional/libstdc++/ ( cd appdir ; rm AppRun ; wget -c https://github.com/darealshinji/AppImageKit-checkrt/releases/download/continuous/AppRun-patched-x86_64 -O AppRun ; chmod a+x AppRun) - ./deploy.AppImage ./appdir/usr/share/applications/FastTrackCli.desktop -appimage + ./deploy.AppImage ./appdir/usr/share/applications/sh.fasttrack.fasttrackcli.desktop -appimage - name: Linux artefact uses: actions/upload-artifact@v1 with: diff --git a/FastTrack.desktop b/sh.fasttrack.fasttrack.desktop similarity index 56% rename from FastTrack.desktop rename to sh.fasttrack.fasttrack.desktop index 6f99d8b..dcf15a1 100644 --- a/FastTrack.desktop +++ b/sh.fasttrack.fasttrack.desktop @@ -1,8 +1,11 @@ [Desktop Entry] +Version=1.0 Type=Application + Name=FastTrack Comment=Fast tracking of multiple objects +Categories=Science;ImageProcessing; + +Icon=fasttrack Exec=FastTrack -Icon=icon -Categories=Science;Qt; -X-AppImage-Version= +Terminal=false diff --git a/sh.fasttrack.fasttrack.metainfo.xml b/sh.fasttrack.fasttrack.metainfo.xml new file mode 100644 index 0000000..0a131d0 --- /dev/null +++ b/sh.fasttrack.fasttrack.metainfo.xml @@ -0,0 +1,29 @@ + + + sh.fasttrack.fasttrack + + FastTrack + Fast tracking of multiple objects + + MIT + GPL-3.0-or-later + + + pointing + keyboard + touch + + + +

+ FastTrack is a free (as freedom) desktop tracking software, easy to install, easy to use, and performant. The software can be downloaded for Linux, macOS, and Windows, and a public API is available to embed the core of the software in any C++/Qt project. +

+
+ + sh.fasttrack.fasttrack.desktop + + + https://raw.githubusercontent.com/FastTrackOrg/FastTrack/master/docs/user/assets/readme.png + + +
diff --git a/FastTrackCli.desktop b/sh.fasttrack.fasttrackcli.desktop similarity index 58% rename from FastTrackCli.desktop rename to sh.fasttrack.fasttrackcli.desktop index 275f3c4..5ba3cbe 100644 --- a/FastTrackCli.desktop +++ b/sh.fasttrack.fasttrackcli.desktop @@ -1,8 +1,11 @@ [Desktop Entry] +Version=1.0 Type=Application + Name=fasttrack-cli Comment=Fast tracking of multiple objects +Categories=Science;ImageProcessing; + +Icon=fasttrack Exec=fasttrack-cli -Icon=icon -Categories=Science;Qt; -X-AppImage-Version= +Terminal=true