Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be63211e6b | ||
|
|
5316c5c113 | ||
|
|
dce6a39fee | ||
|
|
e985305929 |
@@ -1,4 +1,4 @@
|
||||
tobyVersion="8-0"
|
||||
tobyVersion="9.0"
|
||||
mkdir -p "${installPath}/doom"
|
||||
doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null)"
|
||||
if [[ ${#doomPath} -lt 5 ]]; then
|
||||
@@ -17,27 +17,20 @@ if [[ ${#doomPath} -lt 5 ]]; then
|
||||
fi
|
||||
fi
|
||||
doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null | head -1)"
|
||||
if ! [[ -e "${installPath}/doom/DoomMetalVol6.wad" ]] && ! [[ -e "${installPath}/doom/DoomMetalVol7.wad" ]]; then
|
||||
alert
|
||||
choice=$(ui_menu "Doom Metal Selection" "Doom Metal Selection" "Would you like Doom Metal Volume 6 or 7?" "6" "Doom Metal Volume 6" "7" "Doom Metal Volume 7" "none" "None")
|
||||
case "$choice" in
|
||||
"6")
|
||||
download "${ipfsGateway}/ipfs/QmSzWKtP3wPvzn5GNd9F7n4RAhkFHxh2UHxXGefiAufwQW?filename=DoomMetalVol6.wad"
|
||||
;;
|
||||
"7")
|
||||
download "${ipfsGateway}/ipfs/QmfXkz3tzicKGfhcYSiWUZkjkDKP2aVp53Y49n127wMr7D?filename=DoomMetalVol7.wad"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
# The url breaks the normal download function
|
||||
download_named "keyshare-universal.pk3" "https://forum.zdoom.org/download/file.php?id=42262"
|
||||
download "${ipfsGateway}/ipfs/QmRSyAGQPaRtWwH9aT87Q8rKini9GYXac92B9EkBZJtbJ1?filename=TobyAccessibilityMod_V${tobyVersion}.zip"
|
||||
[[ -e "${cache}/DoomMetalVol6.wad" ]] && mv "${cache}/DoomMetalVol6.wad" "${installPath}/doom"
|
||||
[[ -e "${cache}/DoomMetalVol7.wad" ]] && mv "${cache}/DoomMetalVol7.wad" "${installPath}/doom"
|
||||
unzip -n -d "${installPath}/doom" "${cache}/TobyAccessibilityMod_V${tobyVersion}.zip"
|
||||
download "${ipfsGateway}/ipfs/QmdbLQofHiypCseiZEwcZVrrbP2T3DbKteVM9DF7cwHEqb?filename=toby_doom_${tobyVersion}_full.zip"
|
||||
unzip -n -d "${installPath}/doom" "${cache}/toby_doom_${tobyVersion}_full.zip"
|
||||
# Move contents from nested folder up one directory (including hidden files)
|
||||
shopt -s dotglob
|
||||
mv "${installPath}/doom/TobyAccessibilityMod_Version9"*/* "${installPath}/doom/"
|
||||
shopt -u dotglob
|
||||
# Remove the now-empty nested folder
|
||||
rmdir "${installPath}/doom/TobyAccessibilityMod_Version9"*
|
||||
#unzip -n -d "${installPath}/doom" "${cache}/OpMDK_ForV${tobyVersion}.zip"
|
||||
cp -v "${cache}/keyshare-universal.pk3" "${installPath}/doom"
|
||||
rm -fv "${installPath}/doom/"*.{ahk,bat,exe,dll,ps1}
|
||||
rm -fv "${installPath}/doom/"*.{bat,exe,dll,ps1}
|
||||
rm -rfv "${installPath}/doom/_internal"
|
||||
#if [[ -e /usr/share/doom/blasphem.wad ]]; then
|
||||
#ln -s /usr/share/doom/blasphem.wad "${installPath}/doom/"
|
||||
#fi
|
||||
|
||||
12
.install/Wicked Quest.sh
Normal file
12
.install/Wicked Quest.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
local arch=$(uname -m)
|
||||
local gameName
|
||||
|
||||
if [[ "$arch" == "aarch64" ]]; then
|
||||
gameName="wicked_quest-linux-aarch64.zip"
|
||||
else
|
||||
gameName="wicked_quest-linux-x86_64.zip"
|
||||
fi
|
||||
|
||||
get_installer "$gameName" "https://stormdragon2976.itch.io/wicked-quest"
|
||||
mkdir -p "${installPath}/Wicked_Quest"
|
||||
unzip -d "${installPath}/" "${cache}/$gameName"
|
||||
7
.launch/Wicked Quest.game
Normal file
7
.launch/Wicked Quest.game
Normal file
@@ -0,0 +1,7 @@
|
||||
local arch=$(uname -m)
|
||||
if [[ "$arch" == "aarch64" ]]; then
|
||||
pushd "${installPath}/wicked_quest-linux-aarch64"
|
||||
else
|
||||
pushd "${installPath}/wicked_quest-linux-x86_64"
|
||||
fi
|
||||
./wicked_quest
|
||||
28
.update/Wicked Quest.sh
Normal file
28
.update/Wicked Quest.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
run_update() {
|
||||
local installPath="${HOME}/.local/games"
|
||||
local arch
|
||||
arch=$(uname -m)
|
||||
local gameName
|
||||
local cache="${HOME}/.cache/lgm"
|
||||
|
||||
if [[ "$arch" == "aarch64" ]]; then
|
||||
gameName="wicked_quest-linux-aarch64.zip"
|
||||
else
|
||||
gameName="wicked_quest-linux-x86_64.zip"
|
||||
fi
|
||||
|
||||
# Look for the game file in common download locations
|
||||
for i in ~/Downloads ~/Desktop ; do
|
||||
find $i -type f -name "$gameName" -exec mv -v {} "${cache}/" \;
|
||||
done
|
||||
|
||||
# If the file is still not available abort.
|
||||
if [[ ! -f "${cache}/$gameName" ]]; then
|
||||
dialog --backtitle "Linux Game Manager" --msgbox "Couldn't find $gameName. Please download the file from https://stormdragon2976.itch.io/wicked-quest and try again." -1 -1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
unzip -od "${installPath}/" "${cache}/$gameName"
|
||||
}
|
||||
@@ -802,6 +802,12 @@ migrate_launcher() {
|
||||
}
|
||||
|
||||
|
||||
# Make sure this is not ran as root
|
||||
if [[ "$(whoami)" == "root" ]]; then
|
||||
echo "Please do not run ${0##*/} as root."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Detect dialog interface type BEFORE potentially setting DISPLAY
|
||||
# This must happen before we modify DISPLAY to preserve console detection
|
||||
if [[ -z "$DISPLAY" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user