mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-08 21:55:54 +08:00
Merge 119e847545
into 5339a49f4a
This commit is contained in:
commit
d268e79916
3 changed files with 20 additions and 3 deletions
7
snap/hooks/configure
vendored
Normal file
7
snap/hooks/configure
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
wayland_native="$(snapctl get wayland-native)"
|
||||||
|
if [[ -z "$wayland_native" ]]; then
|
||||||
|
snapctl set wayland-native=false
|
||||||
|
fi
|
9
snap/launcher
Normal file
9
snap/launcher
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "${DISABLE_WAYLAND:-0}" = 0 ] && \
|
||||||
|
[ "${GDK_BACKEND:-wayland}" = "wayland" ] && \
|
||||||
|
[ "$(snapctl get wayland-native)" = "true" ]; then
|
||||||
|
args="--enable-features=WaylandWindowDecorations --ozone-platform=wayland"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "$SNAP/usr/bin/mailspring" $args "${@}"
|
|
@ -19,6 +19,8 @@ parts:
|
||||||
override-build: |
|
override-build: |
|
||||||
cp -a "$CRAFT_PART_SRC"/* "$CRAFT_PART_INSTALL"
|
cp -a "$CRAFT_PART_SRC"/* "$CRAFT_PART_INSTALL"
|
||||||
craftctl default
|
craftctl default
|
||||||
|
install -m 755 ${CRAFT_PROJECT_DIR}/snap/launcher \
|
||||||
|
-D ${CRAFT_PART_INSTALL}/bin/mailspring.launcher -v
|
||||||
sed -i 's|Icon=mailspring|Icon=/usr/share/pixmaps/mailspring\.png|' \
|
sed -i 's|Icon=mailspring|Icon=/usr/share/pixmaps/mailspring\.png|' \
|
||||||
$CRAFT_PART_INSTALL/usr/share/applications/Mailspring.desktop
|
$CRAFT_PART_INSTALL/usr/share/applications/Mailspring.desktop
|
||||||
prime:
|
prime:
|
||||||
|
@ -44,7 +46,7 @@ parts:
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
mailspring:
|
mailspring:
|
||||||
command: usr/bin/mailspring --no-sandbox
|
command: bin/mailspring.launcher --no-sandbox
|
||||||
common-id: mailspring
|
common-id: mailspring
|
||||||
desktop: usr/share/applications/Mailspring.desktop
|
desktop: usr/share/applications/Mailspring.desktop
|
||||||
extensions: [gnome]
|
extensions: [gnome]
|
||||||
|
@ -53,8 +55,6 @@ apps:
|
||||||
# Correct the TMPDIR path for Chromium Framework/Electron to
|
# Correct the TMPDIR path for Chromium Framework/Electron to
|
||||||
# ensure libappindicator has readable resources.
|
# ensure libappindicator has readable resources.
|
||||||
TMPDIR: $XDG_RUNTIME_DIR
|
TMPDIR: $XDG_RUNTIME_DIR
|
||||||
# Fallback to XWayland if running in a Wayland session.
|
|
||||||
DISABLE_WAYLAND: '1'
|
|
||||||
plugs:
|
plugs:
|
||||||
- avahi-observe
|
- avahi-observe
|
||||||
- browser-support
|
- browser-support
|
||||||
|
@ -69,3 +69,4 @@ apps:
|
||||||
- pulseaudio
|
- pulseaudio
|
||||||
- unity7
|
- unity7
|
||||||
- x11
|
- x11
|
||||||
|
- wayland
|
||||||
|
|
Loading…
Add table
Reference in a new issue