2
0
mirror of https://github.com/tdlib/telegram-bot-api synced 2025-08-21 17:37:48 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Serjan Nasredin
5e670ca217
Merge f1646e0b0fe58c67086cb6e951cd192ea83ffe74 into 6ba3d865ac78395595ca38592f70cbf35239e60b 2024-07-16 10:34:14 +05:00
Alexander
6ba3d865ac
Build instructions updated (#615)
* Build instructions updated

- Fixed package manager in CentOS
- Added instructions for CentOS 9
- Added instructions for Fedora 37
2024-07-15 21:49:30 +03:00
snxx-lppxx
f1646e0b0f Add Telegram's favicon 2022-01-27 18:45:16 +05:00

View File

@ -2,7 +2,8 @@
<html>
<head>
<title>Telegram Bot API server build instructions</title>
<title>Telegram Bot API server build instructions</title>
<link rel="icon" type="image/svg+xml" sizes="16x16|any" href="https://telegram.org/img/t_logo.svg"/>
<style>
:root {
--background: #fafafa;
@ -201,8 +202,10 @@
<option>Alpine</option>
<option>CentOS 7</option>
<option>CentOS 8</option>
<option>CentOS Stream 9</option>
<option>Debian 8/9</option>
<option>Debian 10+</option>
<option>Fedora 21+</option>
<option>Ubuntu 14</option>
<option>Ubuntu 16</option>
<option>Ubuntu 18</option>
@ -354,7 +357,7 @@ function onOptionsChanged() {
document.getElementById('buildCommandsDiv').style.display = 'block';
var use_clang = os_freebsd || os_openbsd;
if (os_linux && linux_distro !== 'Alpine' && !linux_distro.includes('CentOS')) {
if (os_linux && linux_distro !== 'Alpine' && !linux_distro.includes('CentOS') && !linux_distro.includes('Fedora')) {
document.getElementById('buildCompilerDiv').style.display = 'block';
use_clang = document.getElementById('buildCompilerRadioClang').checked;
} else {
@ -531,19 +534,31 @@ function onOptionsChanged() {
commands.push(sudo + 'apk add ' + packages);
break;
case 'CentOS 7':
case 'CentOS 8':
commands.push(sudo + 'yum update -y');
var packages = 'gcc-c++ make git zlib-devel openssl-devel';
if (linux_distro === 'CentOS 7') {
commands.push(sudo + 'yum install -y centos-release-scl-rh epel-release');
commands.push(sudo + 'yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++');
cmake = 'cmake3';
packages += ' gperf';
} else {
commands.push(sudo + 'yum install -y centos-release-scl-rh epel-release');
commands.push(sudo + 'yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++');
cmake = 'cmake3';
packages += ' gperf ' + cmake;
commands.push(sudo + 'yum install -y ' + packages);
break;
case 'CentOS 8':
case 'CentOS Stream 9':
commands.push(sudo + 'dnf update -y');
var packages = 'gcc-c++ make git zlib-devel openssl-devel';
if (linux_distro === 'CentOS 8') {
commands.push(sudo + 'dnf --enablerepo=powertools install gperf');
} else {
commands.push(sudo + 'dnf --enablerepo=crb install gperf');
}
packages += ' ' + cmake;
commands.push(sudo + 'yum install -y ' + packages);
commands.push(sudo + 'dnf install -y ' + packages);
break;
case 'Fedora 21+':
commands.push(sudo + 'dnf update -y');
var packages = 'gperf gcc-c++ make git zlib-devel openssl-devel';
packages += ' ' + cmake;
commands.push(sudo + 'dnf install -y ' + packages);
break;
case 'Debian 8/9':
case 'Debian 10+':