Started work on Slay the Spire.
This commit is contained in:
parent
d328cc6814
commit
ea69dd4444
4
.files/SlayTheSpire/MTS.sh
Executable file
4
.files/SlayTheSpire/MTS.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
speech-dispatcher -c inet_socket -t 0 -P "$HOME/.local/share/speechd.pid"
|
||||
./jre/bin/java -jar ModTheSpire.jar --skip-launcher "$@" &> file.log
|
12
.files/SlayTheSpire/mod_lists.json
Normal file
12
.files/SlayTheSpire/mod_lists.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"defaultList": "Default",
|
||||
"lists": {
|
||||
"Default": [
|
||||
"BaseMod.jar",
|
||||
"StSLib.jar",
|
||||
"Curses_Come_First.jar",
|
||||
"AchievementEnabler.jar",
|
||||
"sayTheSpire.jar"
|
||||
]
|
||||
}
|
||||
}
|
33
.scripts/SlayTheSpire.sh
Executable file
33
.scripts/SlayTheSpire.sh
Executable file
@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
menulist() {
|
||||
# Args: menu options.
|
||||
# returns: selected tag
|
||||
local i
|
||||
local menuList
|
||||
for i in $@ ; do
|
||||
menuList+=("$i" "$i")
|
||||
done
|
||||
dialog --backtitle "Select a Slay the Spire profile." \
|
||||
--clear \
|
||||
--no-tags \
|
||||
--menu "$(gettext "Please select one")" 0 0 0 "${menuList[@]}" --stdout
|
||||
if [[ $? -ne 1 ]]; then
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
# Create a list of profiles
|
||||
profiles=($(jq -r '.lists | keys[]' "${HOME}/.config/ModTheSpire/mod_lists.json"))
|
||||
|
||||
if [[ "${#profiles[@]}" -ne 1 ]]; then
|
||||
currentProfile="$(menulist "${profiles[@]}")"
|
||||
else
|
||||
currentProfile="Default"
|
||||
fi
|
||||
|
||||
pushd "${HOME}/.local/games/SlayTheSpire"
|
||||
./MTS.sh --profile "$currentProfile"
|
||||
popd
|
||||
|
||||
exit 0
|
@ -479,6 +479,7 @@ gameList=(
|
||||
"QuentinC Play Room"
|
||||
"Periphery Synthetic EP"
|
||||
"S.E.A."
|
||||
#"Slay the Spire"
|
||||
"Slay the Text"
|
||||
"SoundRTS"
|
||||
"soundStrider"
|
||||
@ -695,6 +696,34 @@ case "${game}" in
|
||||
unzip -d "${installPath}/S.E.A." "${cache}/SEA-linux-x64.zip"
|
||||
add_launcher "${installPath}/S.E.A./SEA"
|
||||
;;
|
||||
"Slay the Spire")
|
||||
if ! [[ -f ~/Downloads/slay_the_spire_2020_12_15_8735c9fe3cc2280b76aa3ec47c953352a7df1f65_43444.sh ]] && ! [[ -f ~/Desktop/slay_the_spire_2020_12_15_8735c9fe3cc2280b76aa3ec47c953352a7df1f65_43444.sh ]]; then
|
||||
check_dependencies steamcmd
|
||||
appId="646570"
|
||||
echo "Please enter Steam user name:"
|
||||
read -er steamUser
|
||||
echo "Please enter Steam password:"
|
||||
read -er steamPass
|
||||
steamcmd +@sSteamCmdForcePlatformType windows +login "$steamUser" "$steamPass" +force_install_dir "${HOME}/.local/games/SlayTheSpire" +app_update "$appId" +quit
|
||||
else
|
||||
DISPLAY=""
|
||||
find ~/Downloads -maxdepth 1 -type f -name './slay_the_spire_2020_12_15_8735c9fe3cc2280b76aa3ec47c953352a7df1f65_43444.sh' -exec bash "{}" \; ||
|
||||
find ~/Desktop -maxdepth 1 -type f -name './slay_the_spire_2020_12_15_8735c9fe3cc2280b76aa3ec47c953352a7df1f65_43444.sh' -exec bash "{}" \;
|
||||
fi
|
||||
# Move files into place
|
||||
mkdir -p ~/.config/ModTheSpire/
|
||||
if [[ -f ~"/.config/ModTheSpire/mod_lists.json" ]]; then
|
||||
dialog --backtitle "Linux Game manager" \
|
||||
--yesno "Existing mod_lists.json file found. Would you like to replace it?" -1 -1 --stdout &&
|
||||
cp -v .files/SlayTheSpire/mod_lists.json ~"/.config/ModTheSpire/mod_lists.json"
|
||||
else
|
||||
cp -v .files/SlayTheSpire/mod_lists.json ~"/.config/ModTheSpire/mod_lists.json"
|
||||
fi
|
||||
cp -v .files/SlayTheSpire/MTS.sh ~/.local/games/SlayTheSpire/
|
||||
launcherPath="$(readlink -f "$0")"
|
||||
launcherPath="${launcherPath%/*}"
|
||||
add_launcher "${launcherPath}/.scripts/SlayTheSpire.sh"
|
||||
;;
|
||||
"Slay the Text")
|
||||
check_dependencies python-ansimarkup:ansimarkup
|
||||
git -C "${installPath}/" clone https://github.com/Difio3333/slaythetext.git | \
|
||||
|
Loading…
Reference in New Issue
Block a user