Add desktop entry with an app icon.

This commit is contained in:
Maximiliano Bertacchini 2019-07-10 17:16:26 +00:00 committed by Adrian Lucrèce Céleste
parent 7a2c3f7741
commit bad0373bbb
1 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,7 @@ confinement: strict # use 'strict' once you have the right plugs and slots
apps: apps:
barrier: barrier:
command: desktop-launch barrier #first run might take longer command: desktop-launch barrier #first run might take longer
desktop: usr/share/applications/barrier.desktop
plugs: &plugs plugs: &plugs
- desktop - desktop
- desktop-legacy - desktop-legacy
@ -41,6 +42,8 @@ parts:
barrier: barrier:
source: . source: .
plugin: cmake plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
build-packages: build-packages:
- xorg-dev - xorg-dev
- libcurl4-openssl-dev - libcurl4-openssl-dev
@ -68,3 +71,9 @@ parts:
- libavahi-common3 - libavahi-common3
- libavahi-compat-libdnssd1 - libavahi-compat-libdnssd1
after: [desktop-qt5] after: [desktop-qt5]
fix-icon:
plugin: nil
override-build:
sed -i 's|Icon=barrier|Icon=/usr/share/icons/hicolor/scalable/apps/barrier.svg|' $SNAPCRAFT_STAGE/usr/share/applications/barrier.desktop
after: [barrier]