Pass the validated engine and version to install()

This commit is contained in:
Benoit Daloze
2020-05-13 23:36:33 +02:00
parent 381e2639aa
commit e5857dbffe
5 changed files with 57 additions and 58 deletions
+1 -2
View File
@@ -33,8 +33,7 @@ export function getAvailableVersions(platform, engine) {
}
}
export async function install(platform, ruby) {
const version = ruby.split('-', 2)[1]
export async function install(platform, engine, version) {
const url = rubyInstallerVersions[version]
if (!url.endsWith('.7z')) {