1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-28 21:32:36 +01:00

feat: auto mod install

This commit is contained in:
aclist 2024-03-10 16:29:47 +09:00
parent f3c67f08ac
commit 4e2c2ea571
3 changed files with 8 additions and 8 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -o pipefail
version=5.2.0-rc.2
version=5.2.0-rc.3
#CONSTANTS
aid=221100
@ -536,10 +536,10 @@ fetch_dzq(){
fetch_helpers_by_sum(){
declare -A sums
sums=(
["ui.py"]="b24d91c66498d874f4a611f806fdc41b"
["ui.py"]="7bfed0b2f9aa5ca92b299ba81dbb3f34"
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
["funcs"]="cf0dbd17948bf3ea3888bf829f116acf"
["funcs"]="c4a7fc048c58a2d20181591b06b836ad"
)
local author="aclist"
local repo="dztui"

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -o pipefail
version=5.2.0-rc.2
version=5.2.0-rc.3
#CONSTANTS
aid=221100
@ -1031,7 +1031,7 @@ try_connect(){
fi
case $auto_install in
"") manual_mod_install "$ip" "$gameport" "$diff" "$sanitized_mods";;
1|2) auto_mod_install "$ip" "$gameport" "$diff" "$sanitized_mods" ;;
1|2) manual_mod_install "$ip" "$gameport" "$diff" "$sanitized_mods" ;;
esac
else
launch "$ip" "$gameport" "$sanitized_mods"
@ -1289,8 +1289,8 @@ manual_mod_install(){
[[ -f $ex ]] && return 1
log ${stage_mods[$i]}
$steam_cmd "steam://url/CommunityFilePage/${stage_mods[$i]}"
echo "# Opening workshop page for ${stage_mods[$i]}. If you see no progress after subscribing, try unsubscribing and resubscribing again until the download commences."
$steam_cmd "steam://url/CommunityFilePage/${stage_mods[$i]}+workshop_download_item 221100 ${stage_mods[$i]}"
echo "# Opening workshop page for ${stage_mods[$i]}"
sleep 1s
foreground

View file

@ -16,7 +16,7 @@ locale.setlocale(locale.LC_ALL, '')
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GLib, Gdk, GObject, Pango
# 5.2.0.rc-2
# 5.2.0.rc-3
app_name = "DZGUI"
cache = {}