mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-06 05:33:58 +03:00
Handle whitespace in ForgeWrapper (#55)
Fix problem with generating version.json via ForgeWrapper when any path contains whitespace
This commit is contained in:
parent
3544dded05
commit
53403b158e
1 changed files with 3 additions and 3 deletions
|
@ -375,9 +375,9 @@ class Handler {
|
||||||
getForgedWrapped () {
|
getForgedWrapped () {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
const libraryDirectory = path.resolve(this.options.overrides.libraryRoot || path.join(this.options.root, 'libraries'))
|
const libraryDirectory = path.resolve(this.options.overrides.libraryRoot || path.join(this.options.root, 'libraries'))
|
||||||
const launchArgs = `"${this.options.javaPath ? this.options.javaPath : 'java'}" -jar ${path.resolve(this.options.forgeWrapper.jar)}` +
|
const launchArgs = `"${this.options.javaPath ? this.options.javaPath : 'java'}" -jar "${path.resolve(this.options.forgeWrapper.jar)}"` +
|
||||||
` --installer=${this.options.forge} --instance=${this.options.root} ` +
|
` --installer="${this.options.forge}" --instance="${this.options.root}" ` +
|
||||||
`--saveTo=${path.join(libraryDirectory, 'io', 'github', 'zekerzhayard', 'ForgeWrapper', this.options.forgeWrapper.version)}`
|
`--saveTo="${path.join(libraryDirectory, 'io', 'github', 'zekerzhayard', 'ForgeWrapper', this.options.forgeWrapper.version)}"`
|
||||||
|
|
||||||
const fw = child.exec(launchArgs)
|
const fw = child.exec(launchArgs)
|
||||||
const forgeJson = path.join(this.options.root, 'forge', this.version.id, 'version.json')
|
const forgeJson = path.join(this.options.root, 'forge', this.version.id, 'version.json')
|
||||||
|
|
Loading…
Reference in a new issue