Skip to content

Commit

Permalink
[add] global: add AppStream metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
bgallois committed Sep 2, 2021
1 parent 8086f7f commit ff38162
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 14 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 6 additions & 3 deletions FastTrack.desktop → sh.fasttrack.fasttrack.desktop
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions sh.fasttrack.fasttrack.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>sh.fasttrack.fasttrack</id>

<name>FastTrack</name>
<summary>Fast tracking of multiple objects</summary>

<metadata_license>MIT</metadata_license>
<project_license>GPL-3.0-or-later</project_license>

<recommends>
<control>pointing</control>
<control>keyboard</control>
<control>touch</control>
</recommends>

<description>
<p>
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.
</p>
</description>

<launchable type="desktop-id">sh.fasttrack.fasttrack.desktop</launchable>
<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/FastTrackOrg/FastTrack/master/docs/user/assets/readme.png</image>
</screenshot>
</screenshots>
</component>
9 changes: 6 additions & 3 deletions FastTrackCli.desktop → sh.fasttrack.fasttrackcli.desktop
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ff38162

Please sign in to comment.