From b850ba025e9670ffa23c8f70e5b71a6d66ddf60b Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Mon, 29 Apr 2024 16:22:45 +0800 Subject: [PATCH] feat: add openssl support --- src/helpers/utilities.js | 9 +++++++++ src/presets.js | 1 + 2 files changed, 10 insertions(+) diff --git a/src/helpers/utilities.js b/src/helpers/utilities.js index c762f2b..16c6fbc 100644 --- a/src/helpers/utilities.js +++ b/src/helpers/utilities.js @@ -92,6 +92,7 @@ module.exports = { utils.which('ffmpeg'), ]).then(v => utils.determineFound('FFmpeg', v[0], v[1])); }, + getCurlInfo: () => { utils.log('trace', 'getCurlInfo'); return Promise.all([ @@ -99,4 +100,12 @@ module.exports = { utils.which('curl'), ]).then(v => utils.determineFound('Curl', v[0], v[1])); }, + + getOpenSSLInfo: () => { + utils.log('trace', 'getOpenSSLInfo'); + return Promise.all([ + utils.run('openssl version').then(utils.findVersion), + utils.which('openssl'), + ]).then(v => utils.determineFound('OpenSSL', v[0], v[1])); + }, }; diff --git a/src/presets.js b/src/presets.js index 347419a..b896ea8 100644 --- a/src/presets.js +++ b/src/presets.js @@ -27,6 +27,7 @@ module.exports = { 'Subversion', 'FFmpeg', 'Curl', + 'OpenSSL', ], Servers: ['Apache', 'Nginx'], Virtualization: ['Docker', 'Docker Compose', 'Parallels', 'VirtualBox', 'VMware Fusion'],