Skip to content

Commit

Permalink
Merge pull request #1074 from gqrx-sdr/appdata-fixes
Browse files Browse the repository at this point in the history
Install the icon, desktop entry, and appstream metadata in cmake
  • Loading branch information
argilo authored Jan 22, 2022
2 parents bd5441c + 1bab1f0 commit d731314
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: sudo apt-get update -qq && sudo apt-get install -y cmake qt5-default libqt5svg5-dev libboost-dev libpulse-dev portaudio19-dev liblog4cpp5-dev gnuradio-dev gr-osmosdr gr-fcdproplus liborc-0.4-dev desktop-file-utils
run: sudo apt-get update -qq && sudo apt-get install -y cmake qt5-default libqt5svg5-dev libboost-dev libpulse-dev portaudio19-dev liblog4cpp5-dev gnuradio-dev gr-osmosdr gr-fcdproplus liborc-0.4-dev appstream desktop-file-utils
- name: Checkout code
uses: actions/checkout@v2
- name: Configure
Expand All @@ -22,6 +22,8 @@ jobs:
run: make
- name: Validate desktop entry
run: desktop-file-validate gqrx.desktop
- name: Validate appstream metadata
run: appstreamcli validate gqrx.appdata.xml
macos-build:
name: MacOS CI
strategy:
Expand Down
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,15 @@ if(Gnuradio_VERSION VERSION_LESS "3.8")
)
endif()

# Install desktop
install(FILES gqrx.desktop DESTINATION share/applications)

# Install appstream / metainfo file
install(FILES gqrx.appdata.xml DESTINATION share/metainfo)

# Install icon
install(FILES resources/icons/gqrx.svg DESTINATION share/icons/hicolor/scalable/apps)

# Add subdirectories
add_subdirectory(src)

Expand Down
6 changes: 3 additions & 3 deletions gqrx.appdata.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>gqrx.desktop</id>
<id>dk.gqrx.gqrx</id>
<name>Gqrx</name>
<summary>Software defined radio receiver implemented using GNU Radio and the Qt GUI toolkit</summary>
<summary xml:lang="nl">Software defined radio ontvanger geïmplementeerd met GNU Radio en de Qt GUI toolkit</summary>
<summary xml:lang="ru">Приемник для программно-определенного радио (SDR) использующий GNU Radio и библиотеку Qt.</summary>
<summary xml:lang="ru">Приемник для программно-определенного радио (SDR) использующий GNU Radio и библиотеку Qt</summary>
<developer_name>Alexandru Csete</developer_name>
<description>
<p>
Expand All @@ -25,7 +25,7 @@
<screenshots>
<screenshot type="default">
<!-- <caption></caption> -->
<image height="722" width="1024">https://c2.staticflickr.com/2/1567/23593127703_11fc1ac026_b.jpg</image>
<image width="1850" height="1055">https://raw.githubusercontent.com/gqrx-sdr/gqrx/master/resources/screenshots/gqrx-main.png</image>
</screenshot>
</screenshots>
<update_contact>[email protected]</update_contact>
Expand Down
5 changes: 5 additions & 0 deletions resources/news.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

2.15.6: In progress...

IMPROVED: Install icon, desktop entry, and appstream metadata.


2.15.5: Released January 20, 2022

FIXED: Use correct categories in desktop entry file.
Expand Down

0 comments on commit d731314

Please sign in to comment.