* fixing snap on ubuntu

* remove release candidates from snapcraft release
This commit is contained in:
borgmanJeremy
2022-01-14 17:17:24 -06:00
committed by GitHub
parent ab32f40348
commit ad1bf28815

View File

@@ -12,7 +12,8 @@ description: |
tools. tools.
grade: stable # must be 'stable' to release into candidate/stable channels grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots 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: architectures:
- build-on: amd64 - build-on: amd64
@@ -28,7 +29,6 @@ apps:
QT_QPA_PLATFORMTHEME: gtk3 QT_QPA_PLATFORMTHEME: gtk3
slots: [dbus-flameshot] slots: [dbus-flameshot]
plugs: plugs:
- kde-frameworks-5-plug
- home - home
- removable-media - removable-media
- network - network
@@ -36,6 +36,9 @@ apps:
- opengl - opengl
- x11 - x11
- wayland - wayland
- desktop
- desktop-legacy
- unity7
parts: parts:
flameshot: flameshot:
@@ -46,7 +49,8 @@ parts:
source-type: git source-type: git
override-pull: | override-pull: |
snapcraftctl 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_revno="$(git rev-list $(git describe --tags --abbrev=0)..HEAD --count)"
git_hash="$(git rev-parse --short HEAD)" git_hash="$(git rev-parse --short HEAD)"
snapcraftctl set-version "${last_committed_tag}+git${git_revno}.${git_hash}" snapcraftctl set-version "${last_committed_tag}+git${git_revno}.${git_hash}"