build: Fix build linux after flutter 3.24.1 and add handy_window

This commit is contained in:
krille-chan 2024-08-25 08:50:28 +02:00
commit 3ce4df8425
No known key found for this signature in database
6 changed files with 43 additions and 54 deletions

View file

@ -1,6 +1,6 @@
name: fluffychat
title: FluffyChat
base: core22
base: core24
version: git
license: AGPL-3.0
summary: The cutest messenger in the Matrix network
@ -44,9 +44,11 @@ description: |
grade: stable
confinement: strict
architectures:
- build-on: amd64
- build-on: arm64
platforms:
amd64:
build-on: amd64
arm64:
build-on: arm64
parts:
olm:
@ -64,40 +66,13 @@ parts:
stage-snaps:
- zenity-integration
flutter-git:
source: https://github.com/flutter/flutter.git
source-tag: 3.19.6
source-depth: 1
plugin: nil
override-build: |
mkdir -p $CRAFT_PART_INSTALL/usr/bin
mkdir -p $CRAFT_PART_INSTALL/usr/libexec
cp -r $CRAFT_PART_SRC $CRAFT_PART_INSTALL/usr/libexec/flutter
ln -s $CRAFT_PART_INSTALL/usr/libexec/flutter/bin/flutter $CRAFT_PART_INSTALL/usr/bin/flutter
ln -s $SNAPCRAFT_PART_INSTALL/usr/libexec/flutter/bin/dart $SNAPCRAFT_PART_INSTALL/usr/bin/dart
$CRAFT_PART_INSTALL/usr/bin/flutter doctor
build-packages:
- clang
- cmake
- curl
- libgtk-3-dev
- ninja-build
- unzip
- xz-utils
- zip
override-prime: ''
fluffychat:
after: [flutter-git]
plugin: nil
plugin: flutter
source: .
override-build: |
# Workaround for Flutter build error:
rm -rf build
flutter build linux --release -v
mkdir -p $CRAFT_PART_INSTALL/bin/
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/
craftctl default
build-packages:
- libjsoncpp-dev
- curl
@ -114,7 +89,7 @@ slots:
apps:
fluffychat:
command: bin/fluffychat
command: fluffychat
extensions: [ gnome ]
plugs:
- audio-playback