1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00

Add desktop file and icon

This commit is contained in:
Jon Beniston 2024-03-12 12:00:35 +00:00
parent 4b2369e70a
commit 6739e2cf75

View File

@ -34,7 +34,7 @@
# We can clean and build a specific package, and then open a shell after the build in the snap filesystem, with: # 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 clean uhd
# snapcraft stage uhd--shell-after # snapcraft stage uhd --shell-after
# #
name: sdrangel name: sdrangel
@ -42,17 +42,19 @@ base: core22
type: app type: app
version: "7.19.0" version: "7.19.0"
summary: SDRangel 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 confinement: strict
grade: stable grade: stable
license: GPL-3.0 license: GPL-3.0
issues: https://github.com/f4exb/sdrangel/issues issues: https://github.com/f4exb/sdrangel/issues
source-code: https://github.com/f4exb/sdrangel source-code: https://github.com/f4exb/sdrangel
website: https://www.sdrangel.org/ website: https://www.sdrangel.org/
icon: cmake/cpack/sdrangel_icon.svg
apps: apps:
sdrangel: sdrangel:
command: bin/sdrangel_wrapper.sh command: bin/sdrangel_wrapper.sh
desktop: opt/install/sdrangel/share/applications/sdrangel.desktop
plugs: plugs:
- network - network
- network-bind - network-bind
@ -80,6 +82,7 @@ apps:
- avahi-control - avahi-control
environment: 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 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: #extensions:
# - kde-neon # - kde-neon
@ -105,6 +108,13 @@ layout:
parts: 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: cleanup:
after: after:
- sdrangel - sdrangel
@ -132,7 +142,7 @@ parts:
source-tag: v7.19.0 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] after: [apt, libdab, mbelib, serialdv, dsdcc, codec2, sgp4, cm265cc, libsigmf, airspy, rtlsdr, pluto, bladerf, hackrf, limesuite, airspyhf, uhd, uhdfpga, soapysdr, soapyremote]
cmake-parameters: cmake-parameters:
- -DDEBUG_OUTPUT=ON - -DDEBUG_OUTPUT=OFF
- -DBUILD_TYPE=RELEASE - -DBUILD_TYPE=RELEASE
- -DRX_SAMPLE_24BIT=ON - -DRX_SAMPLE_24BIT=ON
- -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
@ -383,6 +393,7 @@ parts:
- libboost-thread1.74.0 - libboost-thread1.74.0
- libboost-program-options1.74.0 - libboost-program-options1.74.0
- libboost-test1.74.0 - libboost-test1.74.0
- libnotify-bin
apt: apt:
plugin: cmake plugin: cmake