parent
03273232c6
commit
bcd8082afe
@ -375,14 +375,9 @@ class ProcessBuilder {
|
|||||||
libs.push(to)
|
libs.push(to)
|
||||||
} else {
|
} else {
|
||||||
// Extract the native library.
|
// Extract the native library.
|
||||||
const natives = lib.natives
|
|
||||||
const extractInst = lib.extract
|
const extractInst = lib.extract
|
||||||
const exclusionArr = extractInst.exclude
|
const exclusionArr = extractInst.exclude
|
||||||
const opSys = Library.mojangFriendlyOS()
|
const artifact = lib.downloads.classifiers[lib.natives[Library.mojangFriendlyOS()].replace('${arch}', process.arch.replace('x', ''))]
|
||||||
const indexId = natives[opSys]
|
|
||||||
const dlInfo = lib.downloads
|
|
||||||
const classifiers = dlInfo.classifiers
|
|
||||||
const artifact = classifiers[indexId]
|
|
||||||
|
|
||||||
// Location of native zip.
|
// Location of native zip.
|
||||||
const to = path.join(this.libPath, artifact.path)
|
const to = path.join(this.libPath, artifact.path)
|
||||||
|
Loading…
Reference in New Issue
Block a user