From ee26e27437bde475b19a6bf8cb73c9fa658876a2 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Wed, 18 Jan 2023 12:04:14 -0600 Subject: [PATCH] Updates for Windows MSYS2 update to OpenSSL 3 --- dist/index.js | 7 ++++--- windows.js | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index b176bee..6000583 100644 --- a/dist/index.js +++ b/dist/index.js @@ -68238,10 +68238,11 @@ async function installGCCTools(type, version) { // 2022-Dec ruby/msys2-gcc-pkgs now uses a suffix to delineate different archive versions. // At present, the only use is to indicate the included OpenSSL version. // With no suffix, archives include OpenSSL 1.1.1, with a '-3.0' suffix, they include - // OpenSSL 3.0.x. - // Currently, OpenSSL 3 is used in Ruby 3.2 & 'head', both use a custom RubyInstaller2 package. + // OpenSSL 3.0.x. Note that the mswin archive uses OpenSSL 3. + // As of Jan-2023, OpenSSL 3 is used in Ruby 3.2 & all head versions. MSYS2 updated + // to OpenSSL 3 on 14-Jan-2023. let suffix = '' - if ((version === 'head') || (!common.isHeadVersion(version) && common.floatVersion(version) >= 3.2)) { + if (common.isHeadVersion(version) || common.floatVersion(version) >= 3.2) { suffix = '-3.0' } const downloadPath = await common.measure(`Downloading ${type}${suffix} build tools`, async () => { diff --git a/windows.js b/windows.js index 587c1b1..efc7472 100644 --- a/windows.js +++ b/windows.js @@ -103,10 +103,11 @@ async function installGCCTools(type, version) { // 2022-Dec ruby/msys2-gcc-pkgs now uses a suffix to delineate different archive versions. // At present, the only use is to indicate the included OpenSSL version. // With no suffix, archives include OpenSSL 1.1.1, with a '-3.0' suffix, they include - // OpenSSL 3.0.x. - // Currently, OpenSSL 3 is used in Ruby 3.2 & 'head', both use a custom RubyInstaller2 package. + // OpenSSL 3.0.x. Note that the mswin archive uses OpenSSL 3. + // As of Jan-2023, OpenSSL 3 is used in Ruby 3.2 & all head versions. MSYS2 updated + // to OpenSSL 3 on 14-Jan-2023. let suffix = '' - if ((version === 'head') || (!common.isHeadVersion(version) && common.floatVersion(version) >= 3.2)) { + if (common.isHeadVersion(version) || common.floatVersion(version) >= 3.2) { suffix = '-3.0' } const downloadPath = await common.measure(`Downloading ${type}${suffix} build tools`, async () => {