Skip to content

Commit 7c5bac3

Browse files
committed
not first commit
0 parents  commit 7c5bac3

File tree

6 files changed

+105
-0
lines changed

6 files changed

+105
-0
lines changed

.github/workflows/publish.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish package
2+
3+
on:
4+
push:
5+
paths:
6+
- telegram/telegramDeb.sh
7+
8+
jobs:
9+
build-nodejs-deb:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Install Dependencies
16+
run: sudo apt update && sudo apt-get install build-essential dpkg
17+
18+
- name: Build Deb File
19+
run: |
20+
bash telegram/telegramDeb.sh
21+
22+
- name: Automatic Release
23+
uses: marvinpinto/action-automatic-releases@latest
24+
with:
25+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
26+
automatic_release_tag: "latest"
27+
prerelease: false
28+
title: "Latest Build"
29+
files: |
30+
*.deb

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Telegram Deb
2+
3+
Telegram : v5.6.3
4+
5+
Deb file for telegram official build.
6+
7+
8+
[![All Downloads](https://img.shields.io/github/downloads/jakbin/telegram-deb/total.svg)](https://github.com/jakbin/telegram-deb)
9+

telegram/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Telegram
2+
3+
make deb file of telegram
4+
5+
current version :- 4.0.2
6+
7+
## install
8+
9+
```sh
10+
curl 'https://raw.githubusercontent.com/jakbin/deb-scripts/main/telegram/telegramDeb.sh' | sh
11+
```

telegram/control

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Package: telegram-desktop
2+
Version: 5.6.3
3+
Built-Using: libtgowt (= 0~git20220202.d618d0b+dfsg-2), ms-gsl (= 4.0.0-2), range-v3 (= 0.11.0-2), tl-expected (= 1.0.0~dfsg-2)
4+
Priority: optional
5+
Section: net
6+
Maintainer: Dhruv Jagdish
7+
Architecture: amd64
8+
Installed-Size: 76.9 MB
9+
Recommends: fonts-open-sans
10+
Homepage: https://desktop.telegram.org
11+
Tag: implemented-in::c++, interface::graphical, interface::x11,
12+
network::client, role::program, uitoolkit::gtk, uitoolkit::qt,
13+
x11::application
14+
Download-Size: 26.2 MB
15+
APT-Sources: https://kali.download/kali kali-rolling/main amd64 Packages
16+
Description: fast and secure messaging application
17+
Telegram is a messaging app with a focus on speed and security, it is
18+
super-fast, simple and free. You can use Telegram on all your devices at the
19+
same time — your messages sync seamlessly across any number of your phones,
20+
tablets or computers.

telegram/share.zip

89 KB
Binary file not shown.

telegram/telegramDeb.sh

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
# repo url:- https://github.com/jakbin/deb-scripts
4+
5+
version='5.6.3'
6+
7+
if [ -f 'tsetup.'$version'.tar.xz' ]; then
8+
echo "file tsetup.$version.tar.xz already exits"
9+
else
10+
wget 'https://github.com/telegramdesktop/tdesktop/releases/download/v'$version'/tsetup.'$version'.tar.xz'
11+
fi
12+
13+
tar -xvf tsetup.$version.tar.xz
14+
mkdir -p telegram-$version/usr/bin
15+
cp -r Telegram/Telegram telegram-$version/usr/bin
16+
mv telegram-$version/usr/bin/Telegram telegram-$version/usr/bin/telegram
17+
18+
if [ -f 'share.zip' ]; then
19+
echo "share.zip file already exits"
20+
else
21+
wget 'https://raw.githubusercontent.com/jakbin/deb-scripts/main/telegram/share.zip'
22+
fi
23+
24+
unzip share.zip
25+
cp -R share telegram-$version/usr/
26+
27+
if [ -f 'control' ]; then
28+
echo "control file already exits"
29+
else
30+
wget 'https://raw.githubusercontent.com/jakbin/deb-scripts/main/telegram/control'
31+
fi
32+
33+
mkdir telegram-$version/DEBIAN
34+
cp control telegram-$version/DEBIAN/
35+
dpkg -b telegram-$version

0 commit comments

Comments
 (0)