Skip to content

Commit

Permalink
Add desktop file and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
srcejon committed Mar 12, 2024
1 parent 4b2369e commit 6739e2c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,27 @@
# We can clean and build a specific package, and then open a shell after the build in the snap filesystem, with:
#
# snapcraft clean uhd
# snapcraft stage uhd--shell-after
# snapcraft stage uhd --shell-after
#

name: sdrangel
base: core22
type: app
version: "7.19.0"
summary: SDRangel
description: SDRangel is an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
description: SDRangel is an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware. SSE 4.2 required.
confinement: strict
grade: stable
license: GPL-3.0
issues: https://github.com/f4exb/sdrangel/issues
source-code: https://github.com/f4exb/sdrangel
website: https://www.sdrangel.org/
icon: cmake/cpack/sdrangel_icon.svg

apps:
sdrangel:
command: bin/sdrangel_wrapper.sh
desktop: opt/install/sdrangel/share/applications/sdrangel.desktop
plugs:
- network
- network-bind
Expand Down Expand Up @@ -80,6 +82,7 @@ apps:
- avahi-control
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/opt/install/sdrangel/lib/sdrangel:$SNAP/opt/install/sdrangel/lib:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/blas:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/lapack
# Can't currently use kde-neon, as it doesn't include Qt Charts, Gamepad or TextToSpeech
#extensions:
# - kde-neon

Expand All @@ -105,6 +108,13 @@ layout:

parts:

iconpath:
after:
- sdrangel
plugin: nil
override-prime: |
sed -i.bak -e 's|Icon=sdrangel_icon|Icon=/opt/install/sdrangel/share/icons/hicolor/scalable/apps/sdrangel_icon.svg|g' $SNAPCRAFT_PRIME/opt/install/sdrangel/share/applications/sdrangel.desktop
cleanup:
after:
- sdrangel
Expand Down Expand Up @@ -132,7 +142,7 @@ parts:
source-tag: v7.19.0
after: [apt, libdab, mbelib, serialdv, dsdcc, codec2, sgp4, cm265cc, libsigmf, airspy, rtlsdr, pluto, bladerf, hackrf, limesuite, airspyhf, uhd, uhdfpga, soapysdr, soapyremote]
cmake-parameters:
- -DDEBUG_OUTPUT=ON
- -DDEBUG_OUTPUT=OFF
- -DBUILD_TYPE=RELEASE
- -DRX_SAMPLE_24BIT=ON
- -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
Expand Down Expand Up @@ -383,6 +393,7 @@ parts:
- libboost-thread1.74.0
- libboost-program-options1.74.0
- libboost-test1.74.0
- libnotify-bin

apt:
plugin: cmake
Expand Down

0 comments on commit 6739e2c

Please sign in to comment.