@@ -13,10 +13,10 @@ const rubyInstallerVersions = require('./windows-versions').versions
1313
1414const drive = common . drive
1515
16- // needed for 2.1, 2.2, 2.3, and mswin, cert file used by Git for Windows
16+ // needed for 2.0- 2.3, and mswin, cert file used by Git for Windows
1717const certFile = 'C:\\Program Files\\Git\\mingw64\\ssl\\cert.pem'
1818
19- // location & path for old RubyInstaller DevKit (MSYS), Ruby 2.1, 2.2 and 2.3
19+ // location & path for old RubyInstaller DevKit (MSYS), Ruby 2.0- 2.3
2020const msys = `${ drive } :\\DevKit64`
2121const msysPathEntries = [ `${ msys } \\mingw\\x86_64-w64-mingw32\\bin` , `${ msys } \\mingw\\bin` , `${ msys } \\bin` ]
2222
@@ -82,7 +82,7 @@ async function downloadAndExtract(engine, version, url, base, rubyPrefix) {
8282async function setupMingw ( version ) {
8383 core . exportVariable ( 'MAKE' , 'make.exe' )
8484
85- if ( version . match ( / ^ 2 \. [ 1 2 3 ] / ) ) {
85+ if ( version . match ( / ^ 2 \. [ 0 1 2 3 ] / ) ) {
8686 core . exportVariable ( 'SSL_CERT_FILE' , certFile )
8787 await common . measure ( 'Installing MSYS' , async ( ) => installMSYS ( version ) )
8888 return msysPathEntries
@@ -91,7 +91,7 @@ async function setupMingw(version) {
9191 }
9292}
9393
94- // Ruby 2.1, 2.2 and 2.3
94+ // Ruby 2.0, 2. 1, 2.2 and 2.3
9595async function installMSYS ( version ) {
9696 const url = 'https://github.com/oneclick/rubyinstaller/releases/download/devkit-4.7.2/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe'
9797 const downloadPath = await tc . downloadTool ( url )
0 commit comments