From 458dfa6e3e93912c78c49eb5d9247bccb42f3296 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sat, 19 Jul 2025 10:54:03 +0200 Subject: [PATCH] build: Fetch version correctly for snap --- snap/snapcraft.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 779770c98..dd8d407a8 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,7 +1,7 @@ name: fluffychat title: FluffyChat base: core24 -version: 1.27.0 +adopt-info: fluffychat license: AGPL-3.0 summary: The cutest messenger in the Matrix network description: | @@ -82,6 +82,8 @@ parts: # Workaround for Flutter build error: rm -rf build + craftctl set version="$(yq e '.version' pubspec.yaml | sed 's/\(.*\)+.*/\1/')" + flutter build linux --release -v mkdir -p $CRAFT_PART_INSTALL/bin/ cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/ @@ -93,6 +95,7 @@ parts: - libpciaccess-dev build-snaps: - rustup + - yq stage-packages: - libsecret-1-0 - libjsoncpp25