Fixed patch applying

This commit is contained in:
Observer KRypt0n_ 2022-01-31 22:09:05 +02:00
parent be569219f3
commit e319099c1e
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
2 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@
"check": "svelte-check --tsconfig ./tsconfig.json" "check": "svelte-check --tsconfig ./tsconfig.json"
}, },
"dependencies": { "dependencies": {
"@empathize/framework": "^1.4.4", "@empathize/framework": "^1.4.5",
"js-md5": "^0.7.3", "js-md5": "^0.7.3",
"semver": "^7.3.5", "semver": "^7.3.5",
"svelte-i18n": "^3.3.13", "svelte-i18n": "^3.3.13",
@ -25,7 +25,7 @@
"neutralino-appimage-bundler": "^1.3.2", "neutralino-appimage-bundler": "^1.3.2",
"sass": "^1.49.0", "sass": "^1.49.0",
"svelte": "^3.46.3", "svelte": "^3.46.3",
"svelte-check": "^2.4.0", "svelte-check": "^2.4.1",
"svelte-preprocess": "^4.10.2", "svelte-preprocess": "^4.10.2",
"tslib": "^2.3.1", "tslib": "^2.3.1",
"typescript": "^4.5.5", "typescript": "^4.5.5",

View file

@ -74,7 +74,7 @@ class Stream extends AbstractInstaller
/** /**
* Execute the main patch installation script * Execute the main patch installation script
*/ */
() => Neutralino.os.execCommand(`cd "${path.addSlashes(gameDir)}" && yes yes | pkexec bash "${path.addSlashes(patchDir)}/patch.sh"`), () => Neutralino.os.execCommand(`pkexec bash -c 'cd "${path.addSlashes(gameDir)}" ; yes yes | "${path.addSlashes(patchDir)}/patch.sh"'`),
/** /**
* Execute the anti-login crash patch installation script * Execute the anti-login crash patch installation script
@ -91,11 +91,11 @@ class Stream extends AbstractInstaller
function: 'Patch/Stream', function: 'Patch/Stream',
message: [ message: [
'Patch script output:', 'Patch script output:',
...outputs[5].stdOut.split(/\r\n|\r|\n/) ...outputs[4].stdOut.split(/\r\n|\r|\n/)
] ]
}); });
this.patchResult = outputs[5].stdOut.includes('==> Patch applied! Enjoy the game'); this.patchResult = outputs[4].stdOut.includes('==> Patch applied! Enjoy the game');
if (this.onPatchFinish) if (this.onPatchFinish)
this.onPatchFinish(this.patchResult); this.onPatchFinish(this.patchResult);