mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-12-23 02:13:46 +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 () {
|
||||
return new Promise(resolve => {
|
||||
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)}` +
|
||||
` --installer=${this.options.forge} --instance=${this.options.root} ` +
|
||||
`--saveTo=${path.join(libraryDirectory, 'io', 'github', 'zekerzhayard', 'ForgeWrapper', this.options.forgeWrapper.version)}`
|
||||
const launchArgs = `"${this.options.javaPath ? this.options.javaPath : 'java'}" -jar "${path.resolve(this.options.forgeWrapper.jar)}"` +
|
||||
` --installer="${this.options.forge}" --instance="${this.options.root}" ` +
|
||||
`--saveTo="${path.join(libraryDirectory, 'io', 'github', 'zekerzhayard', 'ForgeWrapper', this.options.forgeWrapper.version)}"`
|
||||
|
||||
const fw = child.exec(launchArgs)
|
||||
const forgeJson = path.join(this.options.root, 'forge', this.version.id, 'version.json')
|
||||
|
|
Loading…
Add table
Reference in a new issue