From 6052977c3c980838d4e963f84530f7dd4cee4ee0 Mon Sep 17 00:00:00 2001 From: Maroxy Date: Mon, 3 Jan 2022 22:55:29 +0100 Subject: [PATCH] Replace host removal with fakeroot --- src/ts/Patch.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ts/Patch.ts b/src/ts/Patch.ts index 5b98bb9..fe2f47b 100644 --- a/src/ts/Patch.ts +++ b/src/ts/Patch.ts @@ -48,11 +48,6 @@ 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 @@ -74,7 +69,7 @@ class Stream extends AbstractInstaller */ (): Promise => { return new Promise(async (resolve) => { - Process.run(`yes yes | bash "${patchDir}/patch.sh"`, { + Process.run(`fakeroot yes yes | bash "${patchDir}/patch.sh"`, { cwd: await constants.paths.gameDir }).then((process) => { process.finish(() => resolve());