mirror of
https://github.com/PaiGramTeam/telegram-bot-api.git
synced 2025-01-30 14:58:42 +00:00
Simplify packages list in build instructions generator.
This commit is contained in:
parent
6ba3d865ac
commit
dd17f94d9a
@ -534,29 +534,26 @@ function onOptionsChanged() {
|
|||||||
break;
|
break;
|
||||||
case 'CentOS 7':
|
case 'CentOS 7':
|
||||||
commands.push(sudo + 'yum update -y');
|
commands.push(sudo + 'yum update -y');
|
||||||
var packages = 'gcc-c++ make git zlib-devel openssl-devel';
|
|
||||||
commands.push(sudo + 'yum install -y centos-release-scl-rh epel-release');
|
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++');
|
commands.push(sudo + 'yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++');
|
||||||
cmake = 'cmake3';
|
cmake = 'cmake3';
|
||||||
packages += ' gperf ' + cmake;
|
var packages = 'gcc-c++ make git zlib-devel openssl-devel gperf ' + cmake;
|
||||||
commands.push(sudo + 'yum install -y ' + packages);
|
commands.push(sudo + 'yum install -y ' + packages);
|
||||||
break;
|
break;
|
||||||
case 'CentOS 8':
|
case 'CentOS 8':
|
||||||
case 'CentOS Stream 9':
|
case 'CentOS Stream 9':
|
||||||
commands.push(sudo + 'dnf update -y');
|
commands.push(sudo + 'dnf update -y');
|
||||||
var packages = 'gcc-c++ make git zlib-devel openssl-devel';
|
|
||||||
if (linux_distro === 'CentOS 8') {
|
if (linux_distro === 'CentOS 8') {
|
||||||
commands.push(sudo + 'dnf --enablerepo=powertools install gperf');
|
commands.push(sudo + 'dnf --enablerepo=powertools install gperf');
|
||||||
} else {
|
} else {
|
||||||
commands.push(sudo + 'dnf --enablerepo=crb install gperf');
|
commands.push(sudo + 'dnf --enablerepo=crb install gperf');
|
||||||
}
|
}
|
||||||
packages += ' ' + cmake;
|
var packages = 'gcc-c++ make git zlib-devel openssl-devel cmake';
|
||||||
commands.push(sudo + 'dnf install -y ' + packages);
|
commands.push(sudo + 'dnf install -y ' + packages);
|
||||||
break;
|
break;
|
||||||
case 'Fedora 21+':
|
case 'Fedora 21+':
|
||||||
commands.push(sudo + 'dnf update -y');
|
commands.push(sudo + 'dnf update -y');
|
||||||
var packages = 'gperf gcc-c++ make git zlib-devel openssl-devel';
|
var packages = 'gperf gcc-c++ make git zlib-devel openssl-devel cmake';
|
||||||
packages += ' ' + cmake;
|
|
||||||
commands.push(sudo + 'dnf install -y ' + packages);
|
commands.push(sudo + 'dnf install -y ' + packages);
|
||||||
break;
|
break;
|
||||||
case 'Debian 8/9':
|
case 'Debian 8/9':
|
||||||
|
Loading…
Reference in New Issue
Block a user