This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-app/snapcraft.yaml
2020-03-31 13:03:01 +02:00

81 lines
2.2 KiB
YAML

name: nymea-app
version: developer-build
summary: Control app for nymea
description: |
The nymea daemon is a plugin based IoT (Internet of Things) server.
The server works like a translator for devices, things and services
and allows them to interact. With the powerful rule engine you are
able to connect any device available in the system and create individual
scenes and behaviors for your environment.
grade: stable
base: core18
confinement: strict
environment:
USE_qt5: 1
apps:
nymea-app:
command: desktop-launch nymea-app
desktop: usr/share/applications/nymea-app.desktop
environment:
QT_IM_MODULE: qtvirtualkeyboard
__EGL_VENDOR_LIBRARY_DIRS: $SNAP/etc/glvnd/egl_vendor.d:$SNAP/usr/share/glvnd/egl_vendor.d
QT_PLUGIN_PATH: ${SNAP}/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/qt5/plugins
QML2_IMPORT_PATH: ${SNAP}/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/qt5/qml
plugs:
- avahi-observe
- bluez
- network
- opengl
- x11
- desktop
# nymea-app-webgl:
# command: env PATH=$PATH:$SNAP/bin qt5-launch nymea-app -platform webgl:port=8080
# daemon: simple
# restart-condition: always
parts:
nymea-app:
plugin: qmake
source: .
after: [desktop-qt5]
project-files: [ nymea-app.pro ]
# options: [ CONFIG+=withavahi ]
build-packages:
- execstack
- qt5-default
- qt5-qmake
- qtbase5-dev
- libavahi-client-dev
- libavahi-common-dev
- libqt5charts5-dev
- libqt5svg5-dev
- libqt5websockets5-dev
- libqt5webview5-dev
- qtconnectivity5-dev
- qtdeclarative5-dev
- qtquickcontrols2-5-dev
- qttools5-dev-tools
prepare: |
find . -name libQtWebEngineCore.so.5 -exec execstack --clear-execstack \{} \;
stage-packages:
- libqt5gui5
- libqt5websockets5
- libqt5bluetooth5
- libgl1-mesa-dri
- qml-module-qtcharts
- qml-module-qtgraphicaleffects
- qml-module-qtquick2
- qml-module-qtquick-controls2
- qml-module-qtquick-layouts
- qml-module-qtquick-window2
- qml-module-qt-labs-calendar
- qml-module-qt-labs-settings
- qml-module-qt-labs-folderlistmodel
- libavahi-client3
- libavahi-common3
- qtvirtualkeyboard-plugin