Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
88fc99fe
Commit
88fc99fe
authored
Apr 07, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack Telegram: add icons, remove Updater
parent
458659db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
Telegram.sh
repack.d/Telegram.sh
+22
-0
No files found.
repack.d/Telegram.sh
View file @
88fc99fe
...
...
@@ -8,6 +8,8 @@ PRODUCT=Telegram
PRODUCTCUR
=
telegram-desktop
PRODUCTDIR
=
/opt/Telegram
.
$(
dirname
$0
)
/common.sh
# /usr/bin/Telegram
subst
'1iConflicts:telegram-desktop < 3.2.8'
$SPEC
...
...
@@ -29,6 +31,26 @@ subst "s|%files|%files\n/usr/bin/$PRODUCT|" $SPEC
ln
-s
$PRODUCTDIR
/Telegram
$BUILDROOT
/usr/bin/
$PRODUCTCUR
subst
"s|%files|%files
\n
/usr/bin/
$PRODUCTCUR
|"
$SPEC
# Icons
iconname
=
$PRODUCT
url
=
https://github.com/telegramdesktop/tdesktop
for
i
in
16 32 48 64 128 256 512
;
do
mkdir
-p
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
$EGET
-O
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
$iconname
.png
$url
/raw/master/Telegram/Resources/art/icon
$i
.png
||
continue
pack_file /usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
$iconname
.png
done
# Disable the official Telegram Desktop updater
mkdir
-p
"
$BUILDROOT
/etc/tdesktop"
echo
"
$PRODUCTCUR
"
>
"
$BUILDROOT
/etc/tdesktop/externalupdater"
pack_file /etc/tdesktop/externalupdater
remove_file /opt/Telegram/Updater
# TODO: tg.protocol
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=telegram-desktop-bin
# create desktop file
mkdir
-p
$BUILDROOT
/usr/share/applications/
cat
<<
EOF
>
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment