2017-10-06 03:38:23 +08:00
|
|
|
name: mailspring
|
2021-04-21 02:46:37 +08:00
|
|
|
license: GPL-3.0
|
2021-04-14 09:27:39 +08:00
|
|
|
adopt-info: mailspring
|
2017-10-06 03:38:23 +08:00
|
|
|
|
|
|
|
confinement: strict
|
2023-10-10 03:23:11 +08:00
|
|
|
base: core22
|
2021-09-18 03:36:38 +08:00
|
|
|
compression: lzo
|
2017-10-06 03:38:23 +08:00
|
|
|
|
2021-04-14 09:27:39 +08:00
|
|
|
architectures:
|
|
|
|
- build-on: amd64
|
|
|
|
|
2017-10-06 03:38:23 +08:00
|
|
|
parts:
|
|
|
|
mailspring:
|
2021-04-14 09:27:39 +08:00
|
|
|
plugin: nil
|
|
|
|
override-pull: |
|
2023-10-10 03:23:11 +08:00
|
|
|
deb="$(ls $CRAFT_PROJECT_DIR/app/dist/mailspring-*.deb)"
|
2023-10-10 05:33:30 +08:00
|
|
|
craftctl set version="$(basename "$deb" | grep -Eo "[0-9]+.[0-9]+.[0-9]+")"
|
2023-10-10 03:23:11 +08:00
|
|
|
dpkg -x "$deb" "$CRAFT_PART_SRC"
|
2021-04-14 09:27:39 +08:00
|
|
|
override-build: |
|
2023-10-10 03:23:11 +08:00
|
|
|
cp -a "$CRAFT_PART_SRC"/* "$CRAFT_PART_INSTALL"
|
|
|
|
craftctl default
|
2021-04-14 09:27:39 +08:00
|
|
|
sed -i 's|Icon=mailspring|Icon=/usr/share/pixmaps/mailspring\.png|' \
|
2023-10-10 03:23:11 +08:00
|
|
|
$CRAFT_PART_INSTALL/usr/share/applications/Mailspring.desktop
|
2021-04-15 02:30:30 +08:00
|
|
|
prime:
|
|
|
|
- -usr/share/mailspring/chrome-sandbox
|
2021-04-15 01:51:28 +08:00
|
|
|
parse-info: [usr/share/appdata/mailspring.appdata.xml]
|
2017-10-06 03:38:23 +08:00
|
|
|
stage-packages:
|
|
|
|
- libxkbfile1
|
2023-11-21 11:16:08 +08:00
|
|
|
stage:
|
|
|
|
- -usr/lib/*/libsecret-*
|
2017-10-06 03:38:23 +08:00
|
|
|
|
2023-11-21 11:16:08 +08:00
|
|
|
libsecret:
|
|
|
|
source: https://gitlab.gnome.org/GNOME/libsecret.git
|
|
|
|
source-depth: 1
|
|
|
|
source-tag: '0.20.5'
|
|
|
|
plugin: meson
|
|
|
|
meson-parameters:
|
|
|
|
- --prefix=/usr
|
|
|
|
- -Dgtk_doc=false
|
|
|
|
- -Dmanpage=false
|
|
|
|
- -Dgcrypt=false
|
|
|
|
stage:
|
|
|
|
- usr/lib/*/libsecret-*
|
2021-04-21 02:44:10 +08:00
|
|
|
|
2017-10-06 03:38:23 +08:00
|
|
|
apps:
|
|
|
|
mailspring:
|
2021-04-15 02:30:30 +08:00
|
|
|
command: usr/bin/mailspring --no-sandbox
|
2021-04-15 01:51:28 +08:00
|
|
|
common-id: mailspring
|
2021-02-02 12:22:59 +08:00
|
|
|
desktop: usr/share/applications/Mailspring.desktop
|
2023-10-10 03:23:11 +08:00
|
|
|
extensions: [gnome]
|
2017-10-06 03:38:23 +08:00
|
|
|
environment:
|
2021-04-15 02:30:30 +08:00
|
|
|
HOME: $SNAP_USER_COMMON
|
2018-05-25 02:47:24 +08:00
|
|
|
# Correct the TMPDIR path for Chromium Framework/Electron to
|
|
|
|
# ensure libappindicator has readable resources.
|
2017-10-06 03:38:23 +08:00
|
|
|
TMPDIR: $XDG_RUNTIME_DIR
|
2019-06-11 06:52:21 +08:00
|
|
|
# Fallback to XWayland if running in a Wayland session.
|
2024-09-14 06:32:56 +08:00
|
|
|
DISABLE_WAYLAND: '1'
|
2017-10-06 03:38:23 +08:00
|
|
|
plugs:
|
2019-03-27 00:03:58 +08:00
|
|
|
- avahi-observe
|
|
|
|
- browser-support
|
|
|
|
- cups-control
|
|
|
|
- opengl
|
|
|
|
- home
|
|
|
|
- desktop
|
|
|
|
- desktop-legacy
|
|
|
|
- network
|
|
|
|
- network-bind
|
|
|
|
- password-manager-service
|
|
|
|
- pulseaudio
|
|
|
|
- unity7
|
|
|
|
- x11
|