From ee66769cb1ef4119b965c45f77c21be575f71951 Mon Sep 17 00:00:00 2001 From: Maroxy Date: Tue, 4 Jan 2022 00:56:38 +0100 Subject: [PATCH] revert fakeroot as it won't work with the way process.run works --- src/ts/Patch.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ts/Patch.ts b/src/ts/Patch.ts index fe2f47b..76dfa80 100644 --- a/src/ts/Patch.ts +++ b/src/ts/Patch.ts @@ -48,6 +48,11 @@ class Stream extends AbstractInstaller * Remove test version restrictions from the main patch */ () => Neutralino.os.execCommand(`cd "${patchDir}" && sed -i '/^echo "If you would like to test this patch, modify this script and remove the line below this one."/,+5d' patch.sh`), + + /** + * Remove /etc/hosts editing due to sudo permissions + */ + () => Neutralino.os.execCommand(`cd "${patchDir}" && sed -i '/^# ===========================================================/,+68d' patch.sh`), /** * Remove test version restrictions from the anti-login crash patch @@ -69,7 +74,7 @@ class Stream extends AbstractInstaller */ (): Promise => { return new Promise(async (resolve) => { - Process.run(`fakeroot yes yes | bash "${patchDir}/patch.sh"`, { + Process.run(`yes yes | bash "${patchDir}/patch.sh"`, { cwd: await constants.paths.gameDir }).then((process) => { process.finish(() => resolve()); @@ -297,4 +302,4 @@ export default class Patch } } -export { Stream }; +export { Stream }; \ No newline at end of file