Merge branch 'master' of ssh://git.2mb.codes:2222/~stormdragon2976/linux-game-manager

This commit is contained in:
Storm Dragon 2024-03-03 21:04:17 -05:00
commit f00785ba20

View File

@ -818,10 +818,13 @@ case "${game}" in
check_dependencies python3
mkdir -p "${installPath}"
git -C "${installPath}" clone "https://github.com/soundmud/soundrts.git"
git -C "${installPath}/soundrts" checkout v1.3.7
git -C "${installPath}/soundrts" checkout v1.3.8
sed -i 's;git+https://github.com/soundmud/accessible_output2;accessible_output2;' "${installPath}/soundrts/requirements.txt"
python3 -m venv --system-site-packages "${installPath}/soundrts/.venv"
"${installPath}/soundrts/.venv/bin/"pip3 install -r "${installPath}/soundrts/requirements.txt"
if [ $(python3 --version | cut -d. -f2) -ge 12 ] ; then
"${installPath}/soundrts/.venv/bin/"pip3 install pyasyncore pyasynchat
fi
chmod +x "${installPath}/soundrts/soundrts.py"
sed -i '1c\#!'"${installPath}/soundrts/.venv/bin/python3" "${installPath}/soundrts/soundrts.py"
add_launcher "${installPath}/soundrts/soundrts.py"