From 4e2c2ea571adb80ed772d25029b0dc6e45c7f6c9 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sun, 10 Mar 2024 16:29:47 +0900 Subject: [PATCH] feat: auto mod install --- dzgui.sh | 6 +++--- helpers/funcs | 8 ++++---- helpers/ui.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dzgui.sh b/dzgui.sh index 6c00fac..e2bb0a3 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -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" diff --git a/helpers/funcs b/helpers/funcs index 74f83f7..10ed50d 100755 --- a/helpers/funcs +++ b/helpers/funcs @@ -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 diff --git a/helpers/ui.py b/helpers/ui.py index 83cf33e..737b123 100644 --- a/helpers/ui.py +++ b/helpers/ui.py @@ -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 = {}