Forward-port snap fixes (#7831)

This commit is contained in:
Afri Schoedon 2018-02-13 16:31:05 +01:00 committed by GitHub
parent bf7e8741c7
commit 8b0004b4cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -4,5 +4,5 @@ Encoding=UTF-8
Name=parity Name=parity
Comment=Fast, light, robust Ethereum implementation Comment=Fast, light, robust Ethereum implementation
Exec=parity Exec=parity
Icon=${SNAP}/meta/gui/icon.png Icon=/usr/share/pixmaps/icon.png
Terminal=true Terminal=true

View File

@ -13,9 +13,20 @@ confinement: strict
apps: apps:
parity: parity:
command: parity command: parity
plugs: [network, network-bind, mount-observe, x11, unity7] plugs: [home, network, network-bind, mount-observe, x11, unity7, desktop, desktop-legacy, wayland]
desktop: usr/share/applications/parity.desktop
icon: snap/gui/icon.png
parts: parts:
desktop-icon:
source: ./snap
plugin: nil
prepare: |
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/applications
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
cp -v gui/parity.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications/
cp -v gui/icon.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/
parity: parity:
source: . source: .
plugin: rust plugin: rust