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:
|
build-packages:
|
||||||
- g++
|
- 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:
|
fluffychat:
|
||||||
after: [ flutter-git ]
|
|
||||||
plugin: flutter
|
plugin: flutter
|
||||||
source: .
|
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:
|
build-packages:
|
||||||
- libjsoncpp-dev
|
- libjsoncpp-dev
|
||||||
- execstack
|
- execstack
|
||||||
|
|
@ -97,9 +70,6 @@ parts:
|
||||||
- libjsoncpp-dev
|
- libjsoncpp-dev
|
||||||
- mpv
|
- mpv
|
||||||
- zenity
|
- zenity
|
||||||
override-prime: |
|
|
||||||
craftctl default
|
|
||||||
rm $CRAFT_PRIME/usr/lib/*/libc_malloc_debug.so
|
|
||||||
|
|
||||||
slots:
|
slots:
|
||||||
dbus-svc:
|
dbus-svc:
|
||||||
|
|
@ -109,7 +79,7 @@ slots:
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
fluffychat:
|
fluffychat:
|
||||||
command: bin/fluffychat
|
command: fluffychat
|
||||||
extensions: [gnome]
|
extensions: [gnome]
|
||||||
plugs:
|
plugs:
|
||||||
- audio-playback
|
- audio-playback
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue