diff options
Diffstat (limited to 'snap')
-rw-r--r-- | snap/snapcraft.yaml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 85c7daf..ebf980c 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,5 @@ name: whatsie -version: '4.3' +adopt-info: whatsie-build-src summary: Qt Based WhatsApp Client description: | Fast Light weight WhatsApp Client based on Qt's WebEngine, With lots of settings and packed goodies. @@ -75,13 +75,17 @@ plugs: default-provider: qt515-core20 parts: - build-src: + whatsie-build-src: plugin: nil source: https://github.com/keshavbhatt/whatsie.git source-subdir: src/ override-build: | snapcraftctl build + version="$(printf %s.%s $(git describe --tags --abbrev=0) $(git rev-parse --short HEAD))" + + snapcraftctl set-version "$version" + apt install -y build-essential qt515base qt515tools qt515webengine qt515location qt515xmlpatterns libgl1-mesa-dev QT_BASE_DIR=/opt/qt515 @@ -113,7 +117,7 @@ parts: desktop-launch: plugin: nil source: https://github.com/keshavbhatt/qt515-core20.git - after: [build-src] + after: [whatsie-build-src] override-build: | snapcraftctl build |