Use v1.3.5 soundrts to be compatible with noobs

This commit is contained in:
Michael Taboada 2022-09-09 05:53:33 -07:00
parent d850421696
commit 4f85c4f48c

View File

@ -542,9 +542,9 @@ case "${game}" in
"SoundRTS") "SoundRTS")
mkdir -p "${installPath}" mkdir -p "${installPath}"
git -C "${installPath}" clone "https://github.com/soundmud/soundrts.git" git -C "${installPath}" clone "https://github.com/soundmud/soundrts.git"
git -C "${installPath}/soundrts" checkout v1.3.5
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"