[software development] Telegram软件一键安装(代理需自行提前安装解决)
Tofloor
poster avatar
白夜
deepin
2023-11-24 22:53
Author

软件:Telegram
一键部署安装脚本:

#! /bin/bash
# Project: Linux_TelegramInstall.sh
# Version: 1.0
# Author: baixiaoyeer
# Blog:   https://baixiaoyeer.lofter.com/
# Github: https://github.com/baixiaoyeer
# CreateDate: 20231124

# 首先去Telegram的官方网站,下载Linux系统版本的Telegram源码包(当前最新版本v4.11.7),你也可以使用下面的wget命令直接下载
wget https://updates.tdesktop.com/tlinux/tsetup.4.11.7.tar.xz

# 解压安装包,并从移动软件程序到安装目录,然后建立环境变量启动程序
tar -xf tsetup.0.7.23.tar.xz 
sudo mv ./Telegram/ /etc/
sudo ln /etc/Telegram/Telegram /usr/bin/Telegram

# 创建并写入程序快捷方式
sudo touch /usr/share/applications/Telegram.desktop
sudo bash -c "echo '[Desktop Entry]
Categories=Application;IDE;
Comment=Icon Telegram
Encoding=UTF-8 
Exec=/usr/bin/Telegram 
Icon=/etc/Telegram/telegram.png 
Name=Telegram 
StartupNotify=true 
Terminal=false 
Type=Application 
X-Deepin-Vendor=user-custom' >> /usr/share/applications/Telegram.desktop"



Reply Favorite View the author
All Replies
白夜
deepin
2023-11-24 22:56
#1

补充:快捷方式图片可自行搜索相关图片,下载至目录 /etc/Telegram/,并改名为telegram.png

Reply View the author
安洛
deepin
2023-11-24 23:45
#2

捉个小虫,这里下载的是安装包(二进制包)而不是源码包。telegram确实有公开源码,不过那是另一个东西。

Reply View the author
多啦
deepin
2023-11-25 00:16
#3

flatpak 或者 snap 是更好的选择。

flatpak install flathub org.telegram.desktop

或者

sudo snap install telegram-desktop

打包deb 更好吧。

https://github.com/rodzewich/telegram-deb

Reply View the author
neko
Moderator
2023-11-25 00:32
#4

完全没必要,直接运行官网的二进制文件就会自动创建图标到启动器

Reply View the author
白夜
deepin
2023-11-25 00:52
#5
安洛

捉个小虫,这里下载的是安装包(二进制包)而不是源码包。telegram确实有公开源码,不过那是另一个东西。

没毛病,只是商店没有该软件,自己装了一个记录一下命令,方便下次一键安装

Reply View the author
白夜
deepin
2023-11-25 00:53
#6
neko

完全没必要,直接运行官网的二进制文件就会自动创建图标到启动器

我尝试了,然并卵

Reply View the author
观察者
deepin
2023-11-25 01:55
#7

ACE兼容环境直接命令行安装:

截图_选择区域_20231124175125.png

Reply View the author