From 299bd3f6b365103651e2323351247d3fed583162 Mon Sep 17 00:00:00 2001 From: Jiawen Geng Date: Mon, 29 Apr 2024 16:30:38 +0800 Subject: [PATCH] feat: add openssl support (#255) --- 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'],