build: fetch release version from pubspec for snapcraft

This commit is contained in:
Christian Kußowski committed 2026-10-15 08:06:27 +02:00
1 parent 34ce6e34e1
commit c51b2ada81
2 files changed
+4 -4

No files matched your search

+1 -3
View File
@@ -6,9 +6,7 @@
name: fluffychat
description: Chat with your friends.
publish_to: none
# On version bump please also increase:
# 1. The build number (for F-Droid)
# 2. The version in /snap/snapcraft.yaml
# On version bump please also increase the build number (for F-Droid)
version: 2.10.0+3568
environment:
+3 -1
View File
@@ -1,7 +1,7 @@
name: fluffychat
title: FluffyChat Matrix Messenger
base: core24
version: 2.10.0
adopt-info: fluffychat
license: AGPL-3.0
summary: The cutest messenger in the Matrix network
description: |
@@ -85,6 +85,8 @@ parts:
plugin: nil
source: .
override-build: |
craftctl set version="$(grep '^version:' pubspec.yaml | cut -d' ' -f2 | cut -d+ -f1)"
# Install rust manually:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
export PATH="$HOME/.cargo/bin:$PATH"