Skip to content

Commit

Permalink
build: Test out new flutter build for snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Aug 6, 2023
1 parent 39adb55 commit 061ef9e
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -109,7 +79,7 @@ slots:

apps:
fluffychat:
command: bin/fluffychat
command: fluffychat
extensions: [gnome]
plugs:
- audio-playback
Expand Down

0 comments on commit 061ef9e

Please sign in to comment.