diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 5b22b0f..0036ce1 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -497,13 +497,14 @@ gameList=( # Check for required packages requiredPackages=( + "7z" "curl" "dialog" "unzip" ) for i in "${requiredPackages[@]}" ; do if ! command -v $i > /dev/null 2>&1 ; then - echo "Please install $i before continuing." + echo "Please install ${i/7z/p7zip} before continuing." exit 1 fi done @@ -655,11 +656,18 @@ case "${game}" in fi doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null | head -1)" # The url breaks the normal download function + if ! [[ -e "${doomPath}/DoomMetalVol6.wad" ]]; then + alert + if dialog --backtitle "Linux Game manager" --yesno "Would you like a metal mod?" -1 -1 --stdout ; then + download_named "Doom_Metal_Volume_6_v2.rar" "https://www.moddb.com/downloads/mirror/214324/124/0dbd81ee8d819f6a20da3830ddc20c18/" + fi + fi download_named "keyshare-universal.pk3" "https://forum.zdoom.org/download/file.php?id=42262" download "https://www.dropbox.com/s/uf01fx3vydua6zx/TobyAccessibilityMod_Version${tobyVersion}.zip?dl=0" "https://www.dropbox.com/scl/fi/bac94s01bl31p6e73pbof/OperationMDK.zip?rlkey=6ufdqgyacakqz6ulr2cue6rtm&dl=1" echo "The next step may require your password." echo "It is necessary to places the extracted files in their proper place." alert + [[ -e "${cache}/Doom_Metal_Volume_6_v2.rar" ]] && sudo 7z x -o"${doomPath}/DoomMetalVol6.wad" "${cache}/Doom_Metal_Volume_6_v2.rar" sudo unzip -n -d "${doomPath}" "${cache}/TobyAccessibilityMod_Version${tobyVersion}.zip" sudo unzip -n -d "${doomPath}" "${cache}/OperationMDK.zip" sudo cp -v "${cache}/keyshare-universal.pk3" "${doomPath}"