mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-23 04:26:51 +01:00
Simplify packages list in build instructions generator.
This commit is contained in:
parent
6ba3d865ac
commit
dd17f94d9a
@ -534,29 +534,26 @@ function onOptionsChanged() {
|
||||
break;
|
||||
case 'CentOS 7':
|
||||
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 devtoolset-9-gcc devtoolset-9-gcc-c++');
|
||||
cmake = 'cmake3';
|
||||
packages += ' gperf ' + cmake;
|
||||
var packages = 'gcc-c++ make git zlib-devel openssl-devel 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;
|
||||
var packages = 'gcc-c++ make git zlib-devel openssl-devel cmake';
|
||||
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;
|
||||
var packages = 'gperf gcc-c++ make git zlib-devel openssl-devel cmake';
|
||||
commands.push(sudo + 'dnf install -y ' + packages);
|
||||
break;
|
||||
case 'Debian 8/9':
|
||||
|
Loading…
Reference in New Issue
Block a user