Fix bug in soundrts installer

This commit is contained in:
Michael Taboada 2022-09-04 02:59:39 -07:00
parent 6c684003b1
commit d850421696

View File

@ -544,6 +544,7 @@ case "${game}" in
git -C "${installPath}" clone "https://github.com/soundmud/soundrts.git" git -C "${installPath}" clone "https://github.com/soundmud/soundrts.git"
sed -i 's;git+https://github.com/soundmud/accessible_output2;accessible_output2;' "${installPath}/soundrts/requirements.txt" sed -i 's;git+https://github.com/soundmud/accessible_output2;accessible_output2;' "${installPath}/soundrts/requirements.txt"
pip3 install --user -r "${installPath}/soundrts/requirements.txt" pip3 install --user -r "${installPath}/soundrts/requirements.txt"
pip3 install --user python-espeak
chmod +x "${installPath}/soundrts/soundrts.py" chmod +x "${installPath}/soundrts/soundrts.py"
sed -i '1c\#!/usr/bin/env python3' "${installPath}/soundrts/soundrts.py" sed -i '1c\#!/usr/bin/env python3' "${installPath}/soundrts/soundrts.py"
add_launcher "${installPath}/soundrts/soundrts.py" add_launcher "${installPath}/soundrts/soundrts.py"