mirror of
https://github.com/aclist/dztui.git
synced 2025-01-01 15:12:05 +01:00
feat: auto mod install
This commit is contained in:
parent
f3c67f08ac
commit
4e2c2ea571
3 changed files with 8 additions and 8 deletions
6
dzgui.sh
6
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
version=5.2.0-rc.2
|
version=5.2.0-rc.3
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
|
@ -536,10 +536,10 @@ fetch_dzq(){
|
||||||
fetch_helpers_by_sum(){
|
fetch_helpers_by_sum(){
|
||||||
declare -A sums
|
declare -A sums
|
||||||
sums=(
|
sums=(
|
||||||
["ui.py"]="b24d91c66498d874f4a611f806fdc41b"
|
["ui.py"]="7bfed0b2f9aa5ca92b299ba81dbb3f34"
|
||||||
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
|
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
|
||||||
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
||||||
["funcs"]="cf0dbd17948bf3ea3888bf829f116acf"
|
["funcs"]="c4a7fc048c58a2d20181591b06b836ad"
|
||||||
)
|
)
|
||||||
local author="aclist"
|
local author="aclist"
|
||||||
local repo="dztui"
|
local repo="dztui"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=5.2.0-rc.2
|
version=5.2.0-rc.3
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
|
@ -1031,7 +1031,7 @@ try_connect(){
|
||||||
fi
|
fi
|
||||||
case $auto_install in
|
case $auto_install in
|
||||||
"") manual_mod_install "$ip" "$gameport" "$diff" "$sanitized_mods";;
|
"") 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
|
esac
|
||||||
else
|
else
|
||||||
launch "$ip" "$gameport" "$sanitized_mods"
|
launch "$ip" "$gameport" "$sanitized_mods"
|
||||||
|
@ -1289,8 +1289,8 @@ manual_mod_install(){
|
||||||
[[ -f $ex ]] && return 1
|
[[ -f $ex ]] && return 1
|
||||||
log ${stage_mods[$i]}
|
log ${stage_mods[$i]}
|
||||||
|
|
||||||
$steam_cmd "steam://url/CommunityFilePage/${stage_mods[$i]}"
|
$steam_cmd "steam://url/CommunityFilePage/${stage_mods[$i]}+workshop_download_item 221100 ${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."
|
echo "# Opening workshop page for ${stage_mods[$i]}"
|
||||||
sleep 1s
|
sleep 1s
|
||||||
foreground
|
foreground
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ locale.setlocale(locale.LC_ALL, '')
|
||||||
gi.require_version("Gtk", "3.0")
|
gi.require_version("Gtk", "3.0")
|
||||||
from gi.repository import Gtk, GLib, Gdk, GObject, Pango
|
from gi.repository import Gtk, GLib, Gdk, GObject, Pango
|
||||||
|
|
||||||
# 5.2.0.rc-2
|
# 5.2.0.rc-3
|
||||||
app_name = "DZGUI"
|
app_name = "DZGUI"
|
||||||
|
|
||||||
cache = {}
|
cache = {}
|
||||||
|
|
Loading…
Reference in a new issue