A couple more games added.

This commit is contained in:
Storm Dragon 2022-03-12 23:52:34 -05:00
parent 6444870c66
commit e9531f4050

View File

@ -145,7 +145,7 @@ get_installer() {
--msgbox "$message" -1 -1
# Search the Desktop and Downloads directories for the installation file
for i in ~/Downloads ~/Desktop ; do
find $i -type f -name "$1" -exec cp -v {} "${cache}/" \;
find $i -type f -name "$1" -exec mv -v {} "${cache}/" \;
done
# If the file is still not available abort.
if [[ ! -f "${cache}/$1" ]]; then
@ -255,7 +255,9 @@ exec &> >(/usr/bin/tee -a "${cache}/linux-game-manager.log")
# The list of games available for installation.
# Use menu friendly names.
gameList=(
"E.X.O."
"Fantasy Story II"
"S.E.A."
"soundStrider"
)
@ -307,12 +309,24 @@ done
installPath="${HOME}/.local/games"
mkdir -p "${installPath}"
case "${game}" in
"E.X.O.")
get_installer "EXO-linux-x64.zip" "https://shiftbacktick.itch.io/exo"
mkdir -p "${installPath}/E.X.O."
unzip -d "${installPath}/E.X.O." "${cache}/EXO-linux-x64.zip"
add_launcher "${installPath}/E.X.O./EXO"
;;
"Fantasy Story II")
get_installer "FS2_2.6_Linux.zip" "https://drive.google.com/file/d/187OaD1HhPoty85yJafZyvfqD5_G3P04c/view?usp=sharing"
unzip -d "${installPath}" "${cache}/FS2_2.6_Linux.zip"
chmod +x "${installPath}/FS2_2.6_Linux/FS2.x86_64"
add_launcher "${installPath}/FS2_2.6_Linux/FS2.x86_64" "-ESpeakApplication=espeak-ng"
;;
"S.E.A.")
get_installer "SEA-linux-x64.zip" "https://shiftbacktick.itch.io/sea"
mkdir -p "${installPath}/S.E.A."
unzip -d "${installPath}/S.E.A." "${cache}/SEA-linux-x64.zip"
add_launcher "${installPath}/S.E.A./SEA"
;;
"soundStrider")
get_installer "soundStrider-linux-x64.zip" "https://shiftbacktick.itch.io/soundstrider"
mkdir -p "${installPath}/soundStrider"