diff options
author | Nicolas Hennion <nicolashennion@gmail.com> | 2019-04-12 10:55:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 10:55:51 +0200 |
commit | c645ef81ae370b0ca077828b1e0c368a16a11110 (patch) | |
tree | 30921693953dfe2ce4b9bc93fa113c2778e602cd | |
parent | b9dacd1e98dd9e074df7b697ecd34616926dadab (diff) | |
parent | 6fdf37ef8973fb7afbc90fafdfeb56cd1ff114b8 (diff) |
Merge pull request #1467 from Lin-Buo-Ren/patch/snap/general-improvements
snap: general improvements
-rw-r--r-- | snap/snapcraft.yaml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index b5d809f3..cb7efbc2 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -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: + - -* |