mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-30 08:25:53 +08:00
update to gnome extension and core22 (#2464)
This commit is contained in:
parent
c58415ebc6
commit
fbfaceaf0d
1 changed files with 14 additions and 17 deletions
|
@ -3,7 +3,7 @@ license: GPL-3.0
|
||||||
adopt-info: mailspring
|
adopt-info: mailspring
|
||||||
|
|
||||||
confinement: strict
|
confinement: strict
|
||||||
base: core18
|
base: core22
|
||||||
compression: lzo
|
compression: lzo
|
||||||
|
|
||||||
architectures:
|
architectures:
|
||||||
|
@ -13,46 +13,43 @@ parts:
|
||||||
mailspring:
|
mailspring:
|
||||||
plugin: nil
|
plugin: nil
|
||||||
override-pull: |
|
override-pull: |
|
||||||
deb="$(ls $SNAPCRAFT_PROJECT_DIR/app/dist/mailspring-*.deb)"
|
deb="$(ls $CRAFT_PROJECT_DIR/app/dist/mailspring-*.deb)"
|
||||||
snapcraftctl set-version "$(basename "$deb" | grep -Eo "[0-9]+.[0-9]+.[0-9]+")"
|
craftctl set-version "$(basename "$deb" | grep -Eo "[0-9]+.[0-9]+.[0-9]+")"
|
||||||
dpkg -x "$deb" "$SNAPCRAFT_PART_SRC"
|
dpkg -x "$deb" "$CRAFT_PART_SRC"
|
||||||
override-build: |
|
override-build: |
|
||||||
cp -a "$SNAPCRAFT_PART_SRC"/* "$SNAPCRAFT_PART_INSTALL"
|
cp -a "$CRAFT_PART_SRC"/* "$CRAFT_PART_INSTALL"
|
||||||
snapcraftctl build
|
craftctl default
|
||||||
sed -i 's|Icon=mailspring|Icon=/usr/share/pixmaps/mailspring\.png|' \
|
sed -i 's|Icon=mailspring|Icon=/usr/share/pixmaps/mailspring\.png|' \
|
||||||
$SNAPCRAFT_PART_INSTALL/usr/share/applications/Mailspring.desktop
|
$CRAFT_PART_INSTALL/usr/share/applications/Mailspring.desktop
|
||||||
prime:
|
prime:
|
||||||
- -usr/share/mailspring/chrome-sandbox
|
- -usr/share/mailspring/chrome-sandbox
|
||||||
parse-info: [usr/share/appdata/mailspring.appdata.xml]
|
parse-info: [usr/share/appdata/mailspring.appdata.xml]
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- libnspr4
|
|
||||||
- libnss3
|
|
||||||
- libxkbfile1
|
- libxkbfile1
|
||||||
- libxss1
|
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
after: [mailspring]
|
after: [mailspring]
|
||||||
plugin: nil
|
plugin: nil
|
||||||
build-snaps: [core18, gnome-3-34-1804]
|
build-snaps: [core22, gnome-42-2204]
|
||||||
override-prime: |
|
override-prime: |
|
||||||
set -eux
|
set -eux
|
||||||
build_snaps="core18 gnome-3-34-1804"
|
build_snaps="core22 gnome-42-2204"
|
||||||
for snap in $build_snaps; do
|
for snap in $build_snaps; do
|
||||||
cd "/snap/$snap/current" && \
|
cd "/snap/$snap/current" && \
|
||||||
find . -type f,l -exec rm -fv "$SNAPCRAFT_PRIME/{}" "$SNAPCRAFT_PRIME/usr/{}" \;
|
find . -type f,l -exec rm -fv "$CRAFT_PRIME/{}" "$CRAFT_PRIME/usr/{}" \;
|
||||||
done
|
done
|
||||||
for CRUFT in bug lintian man; do
|
for CRUFT in bug lintian man; do
|
||||||
rm -rf $SNAPCRAFT_PRIME/usr/share/$CRUFT
|
rm -rf $CRAFT_PRIME/usr/share/$CRUFT
|
||||||
done
|
done
|
||||||
find $SNAPCRAFT_PRIME/usr/share/doc/ -type f -not -name 'copyright' -delete -print
|
find $CRAFT_PRIME/usr/share/doc/ -type f -not -name 'copyright' -delete -print
|
||||||
find $SNAPCRAFT_PRIME/usr/share -type d -empty -delete -print
|
find $CRAFT_PRIME/usr/share -type d -empty -delete -print
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
mailspring:
|
mailspring:
|
||||||
command: usr/bin/mailspring --no-sandbox
|
command: usr/bin/mailspring --no-sandbox
|
||||||
common-id: mailspring
|
common-id: mailspring
|
||||||
desktop: usr/share/applications/Mailspring.desktop
|
desktop: usr/share/applications/Mailspring.desktop
|
||||||
extensions: [gnome-3-34]
|
extensions: [gnome]
|
||||||
environment:
|
environment:
|
||||||
HOME: $SNAP_USER_COMMON
|
HOME: $SNAP_USER_COMMON
|
||||||
# Correct the TMPDIR path for Chromium Framework/Electron to
|
# Correct the TMPDIR path for Chromium Framework/Electron to
|
||||||
|
|
Loading…
Add table
Reference in a new issue