Skip to content

Commit ad1bf28

Browse files
Fix snap (#2255)
* fixing snap on ubuntu * remove release candidates from snapcraft release
1 parent ab32f40 commit ad1bf28

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

snapcraft.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ description: |
1212
tools.
1313
grade: stable # must be 'stable' to release into candidate/stable channels
1414
confinement: strict # use 'strict' once you have the right plugs and slots
15-
#confinement: devmode # use 'strict' once you have the right plugs and slots
15+
#confinement: devmode # use 'strict' once you have the right plugs and slot
16+
compression: lzo
1617
architectures:
1718
- build-on: amd64
1819

@@ -28,14 +29,16 @@ apps:
2829
QT_QPA_PLATFORMTHEME: gtk3
2930
slots: [dbus-flameshot]
3031
plugs:
31-
- kde-frameworks-5-plug
3232
- home
3333
- removable-media
3434
- network
3535
- network-bind
3636
- opengl
3737
- x11
3838
- wayland
39+
- desktop
40+
- desktop-legacy
41+
- unity7
3942

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

0 commit comments

Comments
 (0)