chore: Fix snapcraft build
This commit is contained in:
parent
f7e46b391e
commit
82a9c1e522
1 changed files with 2 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
name: fluffychat
|
name: fluffychat
|
||||||
title: FluffyChat
|
title: FluffyChat
|
||||||
base: core24
|
base: core24
|
||||||
adopt-info: fluffychat
|
version: 2.0.0
|
||||||
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: |
|
||||||
|
|
@ -78,12 +78,10 @@ parts:
|
||||||
after: [flutter-git]
|
after: [flutter-git]
|
||||||
plugin: nil
|
plugin: nil
|
||||||
source: .
|
source: .
|
||||||
override-pull: |
|
|
||||||
craftctl default
|
|
||||||
craftctl set version="$(yq e '.version' pubspec.yaml | sed 's/\(.*\)+.*/\1/')"
|
|
||||||
override-build: |
|
override-build: |
|
||||||
# Workaround for Flutter build error:
|
# Workaround for Flutter build error:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
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/
|
||||||
|
|
@ -95,7 +93,6 @@ 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