[snap] refresh snap

- move to packaging/ubuntu/snap similar to the others
- use `snapcraftctl` to set the snap version
- define the supported architectures
- use command-chain to improve debugging
pull/519/head
Michał Sawicz 2021-01-27 07:34:25 +01:00
parent c478310c52
commit e188d930db
No known key found for this signature in database
GPG Key ID: 69EFECD3C61D2645
2 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,4 @@
name: nymea-app
version: developer-build
summary: Control app for nymea
description: |
The nymea daemon is a plugin based IoT (Internet of Things) server.
@ -9,12 +8,19 @@ description: |
scenes and behaviors for your environment.
grade: stable
base: core18
base: core20
confinement: strict
adopt-info: nymea-app
architectures:
- build-on: amd64
- build-on: arm64
- build-on: armhf
apps:
nymea-app:
command: desktop-launch nymea-app
command-chain: [ bin/desktop-launch ]
command: usr/bin/nymea-app
desktop: usr/share/applications/nymea-app.desktop
plugs:
- avahi-observe
@ -55,7 +61,6 @@ parts:
plugin: qmake
source: .
after: [desktop-qt5]
project-files: [ nymea-app.pro ]
build-packages:
- execstack
- qt5-default
@ -90,3 +95,6 @@ parts:
- libavahi-common3
- qtvirtualkeyboard-plugin
- qtwayland5
override-build: |
snapcraftctl set-version $( git -C ${SNAPCRAFT_PART_SRC} describe --tags )
snapcraftctl build

1
snap Symbolic link
View File

@ -0,0 +1 @@
packaging/ubuntu/snap