New -u option added for updating games. This is experimental, watch for bugs. Currently contains only 1 entry.

This commit is contained in:
stormdragon2976
2022-12-09 00:45:14 -05:00
parent c085855202
commit 3694c82e21
2 changed files with 51 additions and 1 deletions

View File

@ -0,0 +1,14 @@
run_update() {
local installPath="${HOME}/.local/games"
local gameName=""periphery-synthetic-ep-linux-x64.zip""
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 and try again." -1 -1
exit 1
fi
mkdir -p "${installPath}/periphery-synthetic-ep"
unzip -od "${installPath}/periphery-synthetic-ep" "${cache}/periphery-synthetic-ep-linux-x64.zip"
}