Use SSD drive for Windows Ruby location
This commit is contained in:
+4
-2
@@ -4826,9 +4826,11 @@ async function install(platform, ruby) {
|
|||||||
}
|
}
|
||||||
const base = url.slice(url.lastIndexOf('/') + 1, url.length - '.7z'.length)
|
const base = url.slice(url.lastIndexOf('/') + 1, url.length - '.7z'.length)
|
||||||
|
|
||||||
|
const drv = (process.env['GITHUB_WORKSPACE'] || 'C')[0]
|
||||||
|
|
||||||
const downloadPath = await tc.downloadTool(url)
|
const downloadPath = await tc.downloadTool(url)
|
||||||
await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -oC:\\`)
|
await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -o${drv}:\\`)
|
||||||
const rubyPrefix = `C:\\${base}`
|
const rubyPrefix = `${drv}:\\${base}`
|
||||||
|
|
||||||
const [hostedRuby, msys2] = await linkMSYS2()
|
const [hostedRuby, msys2] = await linkMSYS2()
|
||||||
const newPath = setupPath(msys2, rubyPrefix)
|
const newPath = setupPath(msys2, rubyPrefix)
|
||||||
|
|||||||
+4
-2
@@ -25,9 +25,11 @@ export async function install(platform, ruby) {
|
|||||||
}
|
}
|
||||||
const base = url.slice(url.lastIndexOf('/') + 1, url.length - '.7z'.length)
|
const base = url.slice(url.lastIndexOf('/') + 1, url.length - '.7z'.length)
|
||||||
|
|
||||||
|
const drv = (process.env['GITHUB_WORKSPACE'] || 'C')[0]
|
||||||
|
|
||||||
const downloadPath = await tc.downloadTool(url)
|
const downloadPath = await tc.downloadTool(url)
|
||||||
await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -oC:\\`)
|
await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -o${drv}:\\`)
|
||||||
const rubyPrefix = `C:\\${base}`
|
const rubyPrefix = `${drv}:\\${base}`
|
||||||
|
|
||||||
const [hostedRuby, msys2] = await linkMSYS2()
|
const [hostedRuby, msys2] = await linkMSYS2()
|
||||||
const newPath = setupPath(msys2, rubyPrefix)
|
const newPath = setupPath(msys2, rubyPrefix)
|
||||||
|
|||||||
Reference in New Issue
Block a user