mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-24 00:03:13 +00:00
snap: copy .desktop file and icon from part source path
This commit is contained in:
parent
20c1b58307
commit
ec37867d72
@ -106,10 +106,11 @@ parts:
|
||||
override-build: |
|
||||
set -xe
|
||||
snapcraftctl build
|
||||
part_src=$SNAPCRAFT_PART_INSTALL/../src
|
||||
snap_gui=$SNAPCRAFT_STAGE/../snap/gui
|
||||
mkdir -vp $snap_gui
|
||||
cp -v lib/xdg/telegramdesktop.desktop $snap_gui
|
||||
cp -v Telegram/Resources/art/icon512@2x.png $snap_gui/icon.png
|
||||
cp -v $part_src/lib/xdg/telegramdesktop.desktop $snap_gui
|
||||
cp -v $part_src/Telegram/Resources/art/icon512@2x.png $snap_gui/icon.png
|
||||
sed -i "s|^Icon=.*|Icon=\${SNAP}/meta/gui/icon.png|g" $snap_gui/telegramdesktop.desktop
|
||||
echo "Keywords=tg;chat;im;messaging;messenger;" >> $snap_gui/telegramdesktop.desktop
|
||||
after:
|
||||
|
Loading…
Reference in New Issue
Block a user