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
4af19997
Commit
4af19997
authored
Apr 03, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm pack Telegram: move desktop/icons from repack rule
parent
0744914a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
24 deletions
+25
-24
Telegram.sh
pack.d/Telegram.sh
+25
-1
Telegram.sh
repack.d/Telegram.sh
+0
-23
No files found.
pack.d/Telegram.sh
View file @
4af19997
...
...
@@ -18,7 +18,31 @@ f=$FPRODUCT
[
-f
"
$(
echo
*
/
$FPRODUCT
)
"
]
&&
f
=
"
$(
echo
*
/
$FPRODUCT
)
"
install
-D
-m755
$f
opt/
$TPRODUCT
/
$TPRODUCT
||
fatal
erc pack
$PKGNAME
.tar opt/
$TPRODUCT
# TODO: move to ipfs
# Icons
iconname
=
$PRODUCT
url
=
https://github.com/telegramdesktop/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
done
cat
<<
EOF
| create_file /usr/share/applications/org.telegram.desktop.desktop
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
Exec=
$PRODUCT
-- %u
Icon=
$iconname
StartupWMClass=TelegramDesktop
Type=Application
Categories=Chat;Network;InstantMessaging;Qt;
MimeType=x-scheme-handler/tg;
Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;
X-GNOME-UsesNotifications=true
EOF
erc pack
$PKGNAME
.tar opt/
$TPRODUCT
usr
cat
<<
EOF
>
$PKGNAME
.tar.eepm.yaml
name:
$PRODUCT
...
...
repack.d/Telegram.sh
View file @
4af19997
...
...
@@ -23,32 +23,9 @@ done
add_bin_link_command
add_bin_link_command
$PRODUCTCUR
$PRODUCT
# Icons
iconname
=
$PRODUCT
url
=
https://github.com/telegramdesktop/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
done
echo
"
$PRODUCTDIR
/
$PRODUCT
"
| create_file /usr/share/TelegramDesktop/externalupdater.d/telegram-desktop.conf
# TODO: tg.protocol
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=telegram-desktop-bin
cat
<<
EOF
| create_file /usr/share/applications/org.telegram.desktop.desktop
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
Exec=
$PRODUCTCUR
-- %u
Icon=
$iconname
StartupWMClass=TelegramDesktop
Type=Application
Categories=Chat;Network;InstantMessaging;Qt;
MimeType=x-scheme-handler/tg;
Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;
X-GNOME-UsesNotifications=true
EOF
add_libs_requires
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