mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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:
|
||||
/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:
|
||||
bind: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/pipewire-0.3
|
||||
/usr/lib/$CRAFT_ARCH_TRIPLET/spa-0.2:
|
||||
|
@ -202,6 +204,27 @@ parts:
|
|||
- mozjpeg
|
||||
- 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:
|
||||
plugin: nil
|
||||
build-packages:
|
||||
|
|
Loading…
Add table
Reference in a new issue