mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Generate various caches in snap to speedup launch after updates
This commit is contained in:
parent
7caabb8f5a
commit
d67c48fda1
1 changed files with 23 additions and 0 deletions
|
@ -79,6 +79,8 @@ slots:
|
||||||
layout:
|
layout:
|
||||||
/usr/share:
|
/usr/share:
|
||||||
bind: $SNAP/usr/share
|
bind: $SNAP/usr/share
|
||||||
|
/usr/lib/$CRAFT_ARCH_TRIPLET/gtk-3.0:
|
||||||
|
bind: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/gtk-3.0
|
||||||
/usr/lib/$CRAFT_ARCH_TRIPLET/pipewire-0.3:
|
/usr/lib/$CRAFT_ARCH_TRIPLET/pipewire-0.3:
|
||||||
bind: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/pipewire-0.3
|
bind: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/pipewire-0.3
|
||||||
/usr/lib/$CRAFT_ARCH_TRIPLET/spa-0.2:
|
/usr/lib/$CRAFT_ARCH_TRIPLET/spa-0.2:
|
||||||
|
@ -202,6 +204,27 @@ parts:
|
||||||
- mozjpeg
|
- mozjpeg
|
||||||
- qt
|
- qt
|
||||||
|
|
||||||
|
generate-caches:
|
||||||
|
plugin: nil
|
||||||
|
build-packages:
|
||||||
|
- gtk-update-icon-cache
|
||||||
|
- libglib2.0-bin
|
||||||
|
- libgtk-3-0
|
||||||
|
- shared-mime-info
|
||||||
|
override-prime: |
|
||||||
|
snapcraftctl prime
|
||||||
|
update-mime-database usr/share/mime
|
||||||
|
glib-compile-schemas usr/share/glib-2.0/schemas
|
||||||
|
for theme in usr/share/icons/*; do
|
||||||
|
if [ -f "$theme/index.theme" ] && [ ! -f "$theme/icon-theme.cache" ]; then
|
||||||
|
update-icon-caches "$theme"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
export GTK_PATH=$PWD/usr/lib/$CRAFT_ARCH_TRIPLET/gtk-3.0
|
||||||
|
/usr/lib/$CRAFT_ARCH_TRIPLET/libgtk-3-0/gtk-query-immodules-3.0 > usr/lib/$CRAFT_ARCH_TRIPLET/gtk-3.0/3.0.0/immodules/immodules.cache
|
||||||
|
after:
|
||||||
|
- telegram
|
||||||
|
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
plugin: nil
|
plugin: nil
|
||||||
build-packages:
|
build-packages:
|
||||||
|
|
Loading…
Add table
Reference in a new issue