mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-01-01 22:47:19 +03:00
Use polkit/pkexec instead of removing sudo section
This commit is contained in:
parent
c461f35391
commit
cad460b4dd
1 changed files with 4 additions and 3 deletions
|
@ -52,8 +52,9 @@ class Stream extends AbstractInstaller
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove /etc/hosts editing due to sudo permissions
|
* Remove /etc/hosts editing due to sudo permissions
|
||||||
*/
|
* Let's keep the old removal in case of future issues
|
||||||
() => Neutralino.os.execCommand(`cd "${path.addSlashes(patchDir)}" && sed -i '/^# ===========================================================/,+68d' patch.sh`),
|
() => Neutralino.os.execCommand(`cd "${path.addSlashes(patchDir)}" && sed -i '/^# ===========================================================/,+68d' patch.sh`),
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove test version restrictions from the anti-login crash patch
|
* Remove test version restrictions from the anti-login crash patch
|
||||||
|
@ -73,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 | bash "${path.addSlashes(patchDir)}/patch.sh"`),
|
() => Neutralino.os.execCommand(`cd "${path.addSlashes(gameDir)}" && yes yes | pkexec bash "${path.addSlashes(patchDir)}/patch.sh"`),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute the anti-login crash patch installation script
|
* Execute the anti-login crash patch installation script
|
||||||
|
@ -356,4 +357,4 @@ export default class Patch
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export { Stream };
|
export { Stream };
|
||||||
|
|
Loading…
Reference in a new issue