Merge pull request #1467 from Lin-Buo-Ren/patch/snap/general-improvements

snap: general improvements
This commit is contained in:
Nicolas Hennion 2019-04-12 10:55:51 +02:00 committed by GitHub
commit c645ef81ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 4 deletions

View File

@ -7,6 +7,7 @@ description: |
Web based interface. It can adapt dynamically the displayed information
depending on the user interface size.
base: core
grade: stable
confinement: strict
@ -34,14 +35,16 @@ plugs:
home-glances-config:
interface: personal-files
read:
- $HOME/.config/glances/glances.conf
- $HOME/.config/glances/glances.conf
etc-glances-config:
interface: system-files
read:
- /etc/glances/glances.conf
- /etc/glances/glances.conf
parts:
glances:
after:
- selective-checkout
plugin: python
source: .
# FIXME: Theoretically this also replaces `summary` and `description`
@ -51,8 +54,7 @@ parts:
parse-info: [setup.py]
override-pull: |
snapcraftctl pull
snapcraftctl set-version \
"$(git describe --always --dirty --tags --match 'v*' | sed s/^v//)"
"$SNAPCRAFT_STAGE"/scriptlets/selective-checkout
bottle:
plugin: python
source: https://github.com/bottlepy/bottle.git
@ -68,3 +70,11 @@ parts:
plugin: dump
organize:
'*': bin/
selective-checkout:
plugin: nil
build-packages:
- git
stage-snaps:
- selective-checkout
prime:
- -*