fix: Snapcraft

This commit is contained in:
Christian Pauly 2020-10-18 14:09:02 +02:00
parent 882754d67c
commit c1eebc155f

View file

@ -1,6 +1,6 @@
name: fluffychat name: fluffychat
base: core18 # the base snap is the execution environment for this snap base: core18
version: git # just for humans, typically '1.2+git' or '1.3.2' version: script
summary: Open. Nonprofit. Cute ♥ summary: Open. Nonprofit. Cute ♥
description: | description: |
FluffyChat - Chat with your friends FluffyChat - Chat with your friends
@ -22,24 +22,28 @@ description: |
Website: http://fluffy.chat Website: http://fluffy.chat
Microblog: https://metalhead.club/@krille Microblog: https://metalhead.club/@krille
grade: devel # must be 'stable' to release into candidate/stable channels grade: devel
confinement: strict # use 'strict' once you have the right plugs and slots icon: assets/logo.png
confinement: devmode
parts: parts:
olm: olm: # FIXME
plugin: cmake
source: https://gitlab.matrix.org/matrix-org/olm.git source: https://gitlab.matrix.org/matrix-org/olm.git
source-type: git source-type: git
source-tag: 3.2.1 source-tag: 3.2.1
plugin: cmake
build-packages:
- build-essential
override-build: |
cd /root/parts/olm/src
cmake . -Bbuild
cmake --build build
fluffychat: fluffychat:
plugin: flutter after: [olm]
source: . plugin: dump
flutter-target: lib/main.dart source: ./build/linux/release/bundle
stage-packages: stage-packages:
- libsqlite3-0 - libsqlite3-dev
override-prime: |
snapcraftctl prime
ln -sf libsqlite3.so.0 ${SNAPCRAFT_PRIME}/usr/lib/x86_64-linux-gnu/libsqlite3.so
slots: slots:
dbus-svc: dbus-svc:
@ -51,7 +55,7 @@ apps:
fluffychat: fluffychat:
command: fluffychat command: fluffychat
extensions: extensions:
- flutter-dev - gnome-3-28
plugs: plugs:
- network - network
- home - home