Add desktop entry with an app icon.
This commit is contained in:
parent
7a2c3f7741
commit
bad0373bbb
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue