Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be86f1e916 | ||
|
|
be63211e6b | ||
|
|
5316c5c113 | ||
|
|
dce6a39fee | ||
|
|
e985305929 |
@@ -1,4 +1,4 @@
|
|||||||
tobyVersion="8-0"
|
tobyVersion="9.0"
|
||||||
mkdir -p "${installPath}/doom"
|
mkdir -p "${installPath}/doom"
|
||||||
doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null)"
|
doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null)"
|
||||||
if [[ ${#doomPath} -lt 5 ]]; then
|
if [[ ${#doomPath} -lt 5 ]]; then
|
||||||
@@ -17,27 +17,20 @@ if [[ ${#doomPath} -lt 5 ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null | head -1)"
|
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
|
# The url breaks the normal download function
|
||||||
download_named "keyshare-universal.pk3" "https://forum.zdoom.org/download/file.php?id=42262"
|
download_named "keyshare-universal.pk3" "https://forum.zdoom.org/download/file.php?id=42262"
|
||||||
download "${ipfsGateway}/ipfs/QmRSyAGQPaRtWwH9aT87Q8rKini9GYXac92B9EkBZJtbJ1?filename=TobyAccessibilityMod_V${tobyVersion}.zip"
|
download "${ipfsGateway}/ipfs/QmdbLQofHiypCseiZEwcZVrrbP2T3DbKteVM9DF7cwHEqb?filename=toby_doom_${tobyVersion}_full.zip"
|
||||||
[[ -e "${cache}/DoomMetalVol6.wad" ]] && mv "${cache}/DoomMetalVol6.wad" "${installPath}/doom"
|
unzip -n -d "${installPath}/doom" "${cache}/toby_doom_${tobyVersion}_full.zip"
|
||||||
[[ -e "${cache}/DoomMetalVol7.wad" ]] && mv "${cache}/DoomMetalVol7.wad" "${installPath}/doom"
|
# Move contents from nested folder up one directory (including hidden files)
|
||||||
unzip -n -d "${installPath}/doom" "${cache}/TobyAccessibilityMod_V${tobyVersion}.zip"
|
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"
|
#unzip -n -d "${installPath}/doom" "${cache}/OpMDK_ForV${tobyVersion}.zip"
|
||||||
cp -v "${cache}/keyshare-universal.pk3" "${installPath}/doom"
|
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
|
#if [[ -e /usr/share/doom/blasphem.wad ]]; then
|
||||||
#ln -s /usr/share/doom/blasphem.wad "${installPath}/doom/"
|
#ln -s /usr/share/doom/blasphem.wad "${installPath}/doom/"
|
||||||
#fi
|
#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"
|
||||||
|
}
|
||||||
@@ -290,6 +290,10 @@ check_update() {
|
|||||||
if ! [[ -d ".git" ]]; then
|
if ! [[ -d ".git" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
# Check if we're in a detached HEAD state
|
||||||
|
if ! git symbolic-ref -q HEAD &> /dev/null; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
local url
|
local url
|
||||||
url="$(git ls-remote --get-url)"
|
url="$(git ls-remote --get-url)"
|
||||||
if [[ "$url" =~ ^ssh://|git@|gitea@ ]] || [[ -z "$url" ]]; then
|
if [[ "$url" =~ ^ssh://|git@|gitea@ ]] || [[ -z "$url" ]]; then
|
||||||
@@ -802,6 +806,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
|
# Detect dialog interface type BEFORE potentially setting DISPLAY
|
||||||
# This must happen before we modify DISPLAY to preserve console detection
|
# This must happen before we modify DISPLAY to preserve console detection
|
||||||
if [[ -z "$DISPLAY" ]]; then
|
if [[ -z "$DISPLAY" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user