mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 05:05:10 +00:00
build: Test out new flutter build for snaps
This commit is contained in:
parent
39adb55b3d
commit
061ef9e573
1 changed files with 1 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue