mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-20 17:01:47 +03:00
Replace host removal with fakeroot
This commit is contained in:
parent
e6ac5164b3
commit
6052977c3c
1 changed files with 1 additions and 6 deletions
|
@ -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<void> => {
|
||||
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());
|
||||
|
|
Loading…
Reference in a new issue