Commit 742410c0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm pack 64Gram: download icons from IPFS

parent 3216d460
......@@ -17,14 +17,18 @@ f=$FPRODUCT
install -D -m755 $f opt/$PRODUCT/$PRODUCT || fatal
# Icons
IPFS_ICONS_URL="ipfs://QmSK7oGm1A1jpsrk9oZFe7HbhSQb2BEZBKNxon55dXVjwo?filename=telegram-icons.tar"
if eget $IPFS_ICONS_URL && erc telegram-icons.tar ; then
iconpath=telegram-icons
else
iconpath=https://github.com/TDesktop-x64/tdesktop/raw/master/Telegram/Resources/art
fi
iconname=$PRODUCT
url=https://github.com/TDesktop-x64/tdesktop
for i in 16 32 48 64 128 256 512 ; do
install_file $url/raw/master/Telegram/Resources/art/icon$i.png /usr/share/icons/hicolor/${i}x${i}/apps/$iconname.png
install_file $iconpath/icon$i.png /usr/share/icons/hicolor/${i}x${i}/apps/$iconname.png
done
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment