diff --git a/package.json b/package.json index 8ef0a17..a4b9c56 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "check": "svelte-check --tsconfig ./tsconfig.json" }, "dependencies": { - "@empathize/framework": "^1.4.4", + "@empathize/framework": "^1.4.5", "js-md5": "^0.7.3", "semver": "^7.3.5", "svelte-i18n": "^3.3.13", @@ -25,7 +25,7 @@ "neutralino-appimage-bundler": "^1.3.2", "sass": "^1.49.0", "svelte": "^3.46.3", - "svelte-check": "^2.4.0", + "svelte-check": "^2.4.1", "svelte-preprocess": "^4.10.2", "tslib": "^2.3.1", "typescript": "^4.5.5", diff --git a/src/ts/Patch.ts b/src/ts/Patch.ts index a29dece..988b8c2 100644 --- a/src/ts/Patch.ts +++ b/src/ts/Patch.ts @@ -74,7 +74,7 @@ class Stream extends AbstractInstaller /** * 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 @@ -91,11 +91,11 @@ class Stream extends AbstractInstaller function: 'Patch/Stream', message: [ '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) this.onPatchFinish(this.patchResult);