Merge PR #520: [snap] add daemon mode

This commit is contained in:
Jenkins nymea 2021-03-07 12:29:08 +01:00
commit 5f8e5ca73a
2 changed files with 27 additions and 0 deletions

2
packaging/ubuntu/snap/hooks/configure vendored Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
snapctl restart $SNAP_NAME

View File

@ -18,6 +18,23 @@ architectures:
- build-on: armhf - build-on: armhf
apps: apps:
daemon:
daemon: simple
environment:
QT_IM_MODULE: qtvirtualkeyboard
restart-condition: always
command-chain:
- bin/run-daemon
- bin/desktop-launch
- bin/wayland-launch
command: usr/bin/nymea-app --kiosk
plugs:
- avahi-observe
- bluez
- network
- opengl
- wayland
nymea-app: nymea-app:
command-chain: [ bin/desktop-launch ] command-chain: [ bin/desktop-launch ]
command: usr/bin/nymea-app command: usr/bin/nymea-app
@ -57,6 +74,14 @@ parts:
- xdg-user-dirs - xdg-user-dirs
- fcitx-frontend-qt5 - fcitx-frontend-qt5
mir-kiosk-snap-launch:
plugin: dump
source: https://github.com/MirServer/mir-kiosk-snap-launch.git
override-build: |
${SNAPCRAFT_PART_BUILD}/build-with-plugs.sh opengl wayland
stage-packages:
- inotify-tools
nymea-app: nymea-app:
plugin: qmake plugin: qmake
source: . source: .