build: Test out new flutter build for snaps

This commit is contained in:
krille-chan 2023-08-06 19:00:55 +02:00
parent 39adb55b3d
commit 061ef9e573
No known key found for this signature in database

View file

@ -59,36 +59,9 @@ parts:
build-packages:
- g++
flutter-git:
source: https://github.com/flutter/flutter.git
source-tag: 3.10.6
plugin: nil
override-build: |
set -eux
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 -sf $CRAFT_PART_INSTALL/usr/libexec/flutter/bin/flutter $CRAFT_PART_INSTALL/usr/bin/flutter
export PATH="$CRAFT_PART_INSTALL/usr/bin:$PATH"
flutter doctor
build-packages:
- clang
- cmake
- curl
- ninja-build
- unzip
override-prime: ''
fluffychat:
after: [ flutter-git ]
plugin: flutter
source: .
override-build: |
set -eux
flutter pub get || true
flutter build linux --release -v
mkdir -p $CRAFT_PART_INSTALL/bin
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/
build-packages:
- libjsoncpp-dev
- execstack
@ -97,9 +70,6 @@ parts:
- libjsoncpp-dev
- mpv
- zenity
override-prime: |
craftctl default
rm $CRAFT_PRIME/usr/lib/*/libc_malloc_debug.so
slots:
dbus-svc:
@ -109,7 +79,7 @@ slots:
apps:
fluffychat:
command: bin/fluffychat
command: fluffychat
extensions: [gnome]
plugs:
- audio-playback