Skip to content

Commit

Permalink
Fix snap (#2255)
Browse files Browse the repository at this point in the history
* fixing snap on ubuntu

* remove release candidates from snapcraft release
  • Loading branch information
borgmanJeremy authored Jan 14, 2022
1 parent ab32f40 commit ad1bf28
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ description: |
tools.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
#confinement: devmode # use 'strict' once you have the right plugs and slots
#confinement: devmode # use 'strict' once you have the right plugs and slot
compression: lzo
architectures:
- build-on: amd64

Expand All @@ -28,14 +29,16 @@ apps:
QT_QPA_PLATFORMTHEME: gtk3
slots: [dbus-flameshot]
plugs:
- kde-frameworks-5-plug
- home
- removable-media
- network
- network-bind
- opengl
- x11
- wayland
- desktop
- desktop-legacy
- unity7

parts:
flameshot:
Expand All @@ -46,7 +49,8 @@ parts:
source-type: git
override-pull: |
snapcraftctl pull
last_committed_tag="$(git tag -l --sort=-v:refname | head -1)"
# remove release candidates
last_committed_tag="$(git tag -l --sort=-v:refname | grep -v rc | head -1)"
git_revno="$(git rev-list $(git describe --tags --abbrev=0)..HEAD --count)"
git_hash="$(git rev-parse --short HEAD)"
snapcraftctl set-version "${last_committed_tag}+git${git_revno}.${git_hash}"
Expand Down

0 comments on commit ad1bf28

Please sign in to comment.