Skip to content

Commit 75404d3

Browse files
committed
Don't auto-download OpenSSL on Linux
1 parent 2b4483e commit 75404d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/acquireOpenSSL.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,9 @@ const buildPackage = async () => {
376376

377377
const acquireOpenSSL = async () => {
378378
try {
379-
const downloadBinUrl = process.env.npm_config_openssl_bin_url || getOpenSSLPackageUrl();
380-
if (downloadBinUrl !== 'skip' && !process.env.NODEGIT_OPENSSL_BUILD_PACKAGE) {
379+
const downloadBinUrl = process.env.npm_config_openssl_bin_url
380+
|| (['win32', 'darwin'].includes(process.platform) ? getOpenSSLPackageUrl() : undefined);
381+
if (downloadBinUrl && downloadBinUrl !== 'skip' && !process.env.NODEGIT_OPENSSL_BUILD_PACKAGE) {
381382
const downloadOptions = { downloadBinUrl };
382383
if (process.env.npm_config_openssl_bin_sha256 !== 'skip') {
383384
if (process.env.npm_config_openssl_bin_sha256) {

0 commit comments

Comments
 (0)