mirror of https://github.com/nicolargo/glances.git
Merge pull request #1467 from Lin-Buo-Ren/patch/snap/general-improvements
snap: general improvements
This commit is contained in:
commit
c645ef81ae
|
|
@ -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:
|
||||
- -*
|
||||
|
|
|
|||
Loading…
Reference in New Issue