snap: Inherit informations from appdata when possible

This commit is contained in:
Marco Trevisan (Treviño) 2021-04-14 19:51:28 +02:00 committed by Ben Gotow
parent 9efa93724c
commit 26d0956a0e

View file

@ -1,5 +1,4 @@
name: mailspring name: mailspring
summary: The best email app for people and teams at work
adopt-info: mailspring adopt-info: mailspring
description: | description: |
An extensible desktop mail app built on the modern web. An extensible desktop mail app built on the modern web.
@ -38,6 +37,7 @@ parts:
mkdir -p $SNAPCRAFT_PART_INSTALL/share/themes mkdir -p $SNAPCRAFT_PART_INSTALL/share/themes
mkdir -p $SNAPCRAFT_PART_INSTALL/share/icons mkdir -p $SNAPCRAFT_PART_INSTALL/share/icons
mkdir -p $SNAPCRAFT_PART_INSTALL/share/sounds mkdir -p $SNAPCRAFT_PART_INSTALL/share/sounds
parse-info: [usr/share/appdata/mailspring.appdata.xml]
after: after:
- desktop-gtk3 - desktop-gtk3
stage-packages: stage-packages:
@ -61,6 +61,7 @@ parts:
apps: apps:
mailspring: mailspring:
command: desktop-launch $SNAP/usr/share/mailspring/mailspring --no-sandbox command: desktop-launch $SNAP/usr/share/mailspring/mailspring --no-sandbox
common-id: mailspring
desktop: usr/share/applications/Mailspring.desktop desktop: usr/share/applications/Mailspring.desktop
environment: environment:
# Correct the TMPDIR path for Chromium Framework/Electron to # Correct the TMPDIR path for Chromium Framework/Electron to