Fix ruby-builder.js - Windows io.mkdirP("D:\\")

This commit is contained in:
MSP-Greg
2021-06-18 16:35:19 +02:00
committed by Benoit Daloze
parent 65c1995be7
commit 477b21f02b
2 changed files with 8 additions and 2 deletions
Generated Vendored
+4 -1
View File
@@ -58790,6 +58790,7 @@ __nccwpck_require__.r(__webpack_exports__);
/* harmony export */ "install": () => (/* binding */ install)
/* harmony export */ });
const os = __nccwpck_require__(2087)
const fs = __nccwpck_require__(5747)
const path = __nccwpck_require__(5622)
const exec = __nccwpck_require__(1514)
const io = __nccwpck_require__(7436)
@@ -58835,7 +58836,9 @@ async function downloadAndExtract(platform, engine, version, rubyPrefix) {
const parentDir = path.dirname(rubyPrefix)
await io.rmRF(rubyPrefix)
await io.mkdirP(parentDir)
if (!(fs.existsSync(parentDir) && fs.statSync(parentDir).isDirectory())) {
await io.mkdirP(parentDir)
}
const downloadPath = await common.measure('Downloading Ruby', async () => {
const url = getDownloadURL(platform, engine, version)