Mailspring/snap/snapcraft.template.yaml
2018-07-15 00:58:51 -07:00

67 lines
1.7 KiB
YAML

name: mailspring
version: MAILSPRING_VERSION
summary: The best email app for people and teams at work
description: |
An extensible desktop mail app built on the modern web.
confinement: strict
parts:
mailspring:
plugin: dump
source: ./app/dist/mailspring-MAILSPRING_VERSION-amd64.deb
source-type: deb
# Correct path to icon.
prepare: |
sed -i 's|Icon=mailspring|Icon=/usr/share/pixmaps/mailspring\.png|' usr/share/applications/mailspring.desktop
after:
- desktop-gtk3
stage-packages:
- gir1.2-gnomekeyring-1.0
- libasound2
- libcurl3
- libgconf2-4
- libgcrypt20
- libsecret-1-0
- libnotify4
- libnspr4
- libnss3
- libpulse0
- libpcre3
- libxkbfile1
- libxss1
- libxtst6
- python
apps:
mailspring:
command: desktop-launch $SNAP/usr/share/mailspring/mailspring
desktop: usr/share/applications/mailspring.desktop
environment:
# Correct the TMPDIR path for Chromium Framework/Electron to
# ensure libappindicator has readable resources.
HOME: $SNAP_USER_COMMON
TMPDIR: $XDG_RUNTIME_DIR
# Coerce XDG_CURRENT_DESKTOP to Unity so that App Indicators
# are used and do not fall back to Notification Area applets
# or disappear completely.
XDG_CURRENT_DESKTOP: Unity
plugs:
- avahi-observe
- browser-support
- cups-control
- gsettings
- home
- desktop
- desktop-legacy
- mount-observe
- network
- network-bind
- network-observe
- password-manager-service
- pulseaudio
- removable-media
- screen-inhibit-control
- unity7
- x11