File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -376,8 +376,9 @@ const buildPackage = async () => {
376
376
377
377
const acquireOpenSSL = async ( ) => {
378
378
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 ) {
381
382
const downloadOptions = { downloadBinUrl } ;
382
383
if ( process . env . npm_config_openssl_bin_sha256 !== 'skip' ) {
383
384
if ( process . env . npm_config_openssl_bin_sha256 ) {
You can’t perform that action at this time.
0 commit comments