build: Fetch version correctly for snap
This commit is contained in:
parent
5bccaffab4
commit
458dfa6e3e
1 changed files with 4 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
name: fluffychat
|
name: fluffychat
|
||||||
title: FluffyChat
|
title: FluffyChat
|
||||||
base: core24
|
base: core24
|
||||||
version: 1.27.0
|
adopt-info: fluffychat
|
||||||
license: AGPL-3.0
|
license: AGPL-3.0
|
||||||
summary: The cutest messenger in the Matrix network
|
summary: The cutest messenger in the Matrix network
|
||||||
description: |
|
description: |
|
||||||
|
|
@ -82,6 +82,8 @@ parts:
|
||||||
# Workaround for Flutter build error:
|
# Workaround for Flutter build error:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
|
craftctl set version="$(yq e '.version' pubspec.yaml | sed 's/\(.*\)+.*/\1/')"
|
||||||
|
|
||||||
flutter build linux --release -v
|
flutter build linux --release -v
|
||||||
mkdir -p $CRAFT_PART_INSTALL/bin/
|
mkdir -p $CRAFT_PART_INSTALL/bin/
|
||||||
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/
|
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/
|
||||||
|
|
@ -93,6 +95,7 @@ parts:
|
||||||
- libpciaccess-dev
|
- libpciaccess-dev
|
||||||
build-snaps:
|
build-snaps:
|
||||||
- rustup
|
- rustup
|
||||||
|
- yq
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- libsecret-1-0
|
- libsecret-1-0
|
||||||
- libjsoncpp25
|
- libjsoncpp25
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue