Game "Wicked Quest" added.
This commit is contained in:
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"
|
||||||
|
}
|
Reference in New Issue
Block a user