Skip to content

Commit

Permalink
feat: add openssl support
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen committed Apr 29, 2024
1 parent eb9e5de commit b850ba0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/helpers/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,20 @@ module.exports = {
utils.which('ffmpeg'),
]).then(v => utils.determineFound('FFmpeg', v[0], v[1]));
},

getCurlInfo: () => {
utils.log('trace', 'getCurlInfo');
return Promise.all([
utils.run('curl --version').then(utils.findVersion),
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]));
},
};
1 change: 1 addition & 0 deletions src/presets.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = {
'Subversion',
'FFmpeg',
'Curl',
'OpenSSL',
],
Servers: ['Apache', 'Nginx'],
Virtualization: ['Docker', 'Docker Compose', 'Parallels', 'VirtualBox', 'VMware Fusion'],
Expand Down

0 comments on commit b850ba0

Please sign in to comment.