Use appstream metadata from flathub.

This commit is contained in:
Maximiliano Bertacchini 2019-07-10 17:17:39 +00:00 committed by Adrian Lucrèce Céleste
parent 30bc1948c6
commit f23a2ecec3
1 changed files with 7 additions and 5 deletions

View File

@ -2,11 +2,7 @@ name: barrier-kvm # the Barrier Snappy for Linux / not tested on MAC yet
base: core18 base: core18
version: master version: master
version-script: git -C parts/barrier/src/ describe --tags --long | sed "s/^v//" version-script: git -C parts/barrier/src/ describe --tags --long | sed "s/^v//"
summary: Eliminate the barrier between your machines. adopt-info: appstream-flathub
description: |
Barrier is KVM software forked from Symless's synergy 1.9 codebase.
Synergy was a commercialized reimplementation of the original
CosmoSynergy written by Chris Schoeneman.
grade: stable # must be 'stable' to release into candidate/stable channels grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots confinement: strict # use 'strict' once you have the right plugs and slots
icon: res/barrier.svg icon: res/barrier.svg
@ -16,6 +12,7 @@ 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 desktop: usr/share/applications/barrier.desktop
common-id: com.github.debauchee.barrier
plugs: &plugs plugs: &plugs
- desktop - desktop
- desktop-legacy - desktop-legacy
@ -79,3 +76,8 @@ parts:
override-build: override-build:
sed -i 's|Icon=barrier|Icon=/usr/share/icons/hicolor/scalable/apps/barrier.svg|' $SNAPCRAFT_STAGE/usr/share/applications/barrier.desktop sed -i 's|Icon=barrier|Icon=/usr/share/icons/hicolor/scalable/apps/barrier.svg|' $SNAPCRAFT_STAGE/usr/share/applications/barrier.desktop
after: [barrier] after: [barrier]
appstream-flathub:
plugin: dump
source: https://github.com/flathub/com.github.debauchee.barrier.git
parse-info: [com.github.debauchee.barrier.appdata.xml]