Commit 034fd2a6 authored by Иван Мажукин's avatar Иван Мажукин Committed by Vitaly Lipatov

epm repack 64gram: disable autoupdate

parent de7b9dd1
......@@ -30,35 +30,9 @@ for i in 16 32 48 64 128 256 512 ; do
done
# away of file conflict
subst 's|/etc/tdesktop/externalupdater|/etc/t64gramp/externalupdater|' $BUILDROOT$PRODUCTDIR/$PRODUCT
# since newest versions telegram uses UCS2
# $ echo -n '/etc/tdesktop/externalupdater' | iconv -t UCS2 | hexdump -ve '1/1 " %02x"' | sed -e 's| |\\x|g'
# $ echo -n '/etc/t64gramp/externalupdater' | iconv -t UCS2 | hexdump -ve '1/1 " %02x"' | sed -e 's| |\\x|g'
subst 's|\x2f\x00\x65\x00\x74\x00\x63\x00\x2f\x00\x74\x00\x64\x00\x65\x00\x73\x00\x6b\x00\x74\x00\x6f\x00\x70\x00\x2f\x00\x65\x00\x78\x00\x74\x00\x65\x00\x72\x00\x6e\x00\x61\x00\x6c\x00\x75\x00\x70\x00\x64\x00\x61\x00\x74\x00\x65\x00\x72\x00|\x2f\x00\x65\x00\x74\x00\x63\x00\x2f\x00\x74\x00\x36\x00\x34\x00\x67\x00\x72\x00\x61\x00\x6d\x00\x70\x00\x2f\x00\x65\x00\x78\x00\x74\x00\x65\x00\x72\x00\x6e\x00\x61\x00\x6c\x00\x75\x00\x70\x00\x64\x00\x61\x00\x74\x00\x65\x00\x72\x00|' $BUILDROOT$PRODUCTDIR/$PRODUCT
# Disable the official Telegram Desktop updater, creating menu entry (desktop file) and settings entries
# See https://github.com/telegramdesktop/tdesktop/issues/25718
# New way:
# commit 2be4641496f6f5efc7c18c2842ad00ddf51be43c
#Author: Ilya Fedin <fedin-ilja2010@ya.ru>
#Date: Fri Jan 13 17:58:36 2023 +0400
#
# Install launcher on every launch on Linux
# set DESKTOPINTEGRATION or disable update via set path to binary to /etc/t64gramp/externalupdater
mkdir -p "$BUILDROOT/etc/t64gramp"
# telegram checks with real path to the binary
echo "$PRODUCTDIR/$PRODUCT" >"$BUILDROOT/etc/t64gramp/externalupdater"
pack_dir /etc/t64gramp
pack_file /etc/t64gramp/externalupdater
#remove_file $PRODUCTDIR/Updater
# fixed above
# Hack against https://bugzilla.altlinux.org/42402
# We can't forbit creating a desktop file, so just hide it
#subst "s|Terminal=false|NoDisplay=true|" $BUILDROOT$PRODUCTDIR/Telegram
mkdir -p "$BUILDROOT/usr/share/64Gram/externalupdater.d"
echo "$PRODUCTDIR/$PRODUCT" >"$BUILDROOT/usr/share/64Gram/externalupdater.d/telegram-desktop.conf"
pack_file /usr/share/64Gram/externalupdater.d/telegram-desktop.conf
# TODO: tg.protocol
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=telegram-desktop-bin
......
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