mirror of
https://github.com/aclist/dztui.git
synced 2025-04-05 12:03:00 +02:00
Compare commits
13 commits
bc66ec2e52
...
4aaca4c77e
Author | SHA1 | Date | |
---|---|---|---|
|
4aaca4c77e | ||
|
36753e02f1 | ||
|
2ab2e23736 | ||
|
34e7b2e480 | ||
|
540d0ad7e4 | ||
|
47bea45111 | ||
|
d03346b56a | ||
|
54e0762882 | ||
|
0834a86d33 | ||
|
c6a8841614 | ||
|
df92acb7dc | ||
|
a333571f94 | ||
|
05f88b6019 |
6 changed files with 53 additions and 56 deletions
27
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
27
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
|
@ -1,31 +1,34 @@
|
||||||
name: Bug report
|
name: Bug report
|
||||||
description: Submit bugs that affect functionality here
|
description: Submit bugs that affect functionality here
|
||||||
title: "[BUG] "
|
title: "[BUG] Your title here"
|
||||||
labels: ["bug"]
|
labels: ["bug"]
|
||||||
assignees:
|
assignees:
|
||||||
- aclist
|
- aclist
|
||||||
body:
|
body:
|
||||||
- type: dropdown
|
- type: checkboxes
|
||||||
id: version
|
id: kb
|
||||||
attributes:
|
attributes:
|
||||||
label: Version
|
label: Did you check if this issue already exists?
|
||||||
description: DZGUI version
|
|
||||||
options:
|
options:
|
||||||
- 5.6.x (stable)
|
- label: I have checked the [Knowledge Base](https://aclist.github.io/dzgui/kb.html) and searched through [past issues](https://github.com/aclist/dztui/issues?q=is%3Aissue+is%3Aclosed) and did not find my issue there.
|
||||||
- 5.7.x (testing)
|
required: true
|
||||||
- Version prior to 5.6.0
|
|
||||||
default: 0
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: browsers
|
id: device
|
||||||
attributes:
|
attributes:
|
||||||
label: Device type
|
label: Device type
|
||||||
options:
|
options:
|
||||||
- Desktop PC
|
- Desktop PC
|
||||||
- Steam Deck
|
- Steam Deck
|
||||||
|
default: 0
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: version
|
||||||
|
attributes:
|
||||||
|
label: DZGUI version
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
placeholder: "5.6.0"
|
||||||
- type: input
|
- type: input
|
||||||
id: distro
|
id: distro
|
||||||
attributes:
|
attributes:
|
||||||
|
|
24
.github/ISSUE_TEMPLATE/feature.yml
vendored
24
.github/ISSUE_TEMPLATE/feature.yml
vendored
|
@ -1,31 +1,27 @@
|
||||||
name: Feature suggestion
|
name: Feature suggestion
|
||||||
description: Submit requests for new features here
|
description: Submit requests for new features here
|
||||||
title: "[FEAT] "
|
title: "[FEAT] Your title here"
|
||||||
labels: ["enhancement"]
|
labels: ["enhancement"]
|
||||||
assignees:
|
assignees:
|
||||||
- aclist
|
- aclist
|
||||||
body:
|
body:
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: version
|
id: device
|
||||||
attributes:
|
|
||||||
label: Version
|
|
||||||
description: DZGUI version
|
|
||||||
options:
|
|
||||||
- 5.6.x (stable)
|
|
||||||
- 5.7.x (testing)
|
|
||||||
- Version prior to 5.6.0
|
|
||||||
default: 0
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: dropdown
|
|
||||||
id: browsers
|
|
||||||
attributes:
|
attributes:
|
||||||
label: Device type
|
label: Device type
|
||||||
options:
|
options:
|
||||||
- Desktop PC
|
- Desktop PC
|
||||||
- Steam Deck
|
- Steam Deck
|
||||||
|
default: 0
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: version
|
||||||
|
attributes:
|
||||||
|
label: DZGUI version
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
placeholder: "5.6.0"
|
||||||
- type: input
|
- type: input
|
||||||
id: distro
|
id: distro
|
||||||
attributes:
|
attributes:
|
||||||
|
|
31
.github/ISSUE_TEMPLATE/trouble.yml
vendored
31
.github/ISSUE_TEMPLATE/trouble.yml
vendored
|
@ -1,38 +1,27 @@
|
||||||
name: Troubleshooting
|
name: Troubleshooting
|
||||||
description: Submit user error/troubleshooting questions here
|
description: Submit user error/troubleshooting questions here
|
||||||
title: "[HELP] "
|
title: "[HELP] Your title here"
|
||||||
labels: ["troubleshooting"]
|
labels: ["troubleshooting"]
|
||||||
assignees:
|
assignees:
|
||||||
- aclist
|
- aclist
|
||||||
body:
|
body:
|
||||||
- type: checkboxes
|
|
||||||
id: kb
|
|
||||||
attributes:
|
|
||||||
label: Did you check if this issue already exists?
|
|
||||||
options:
|
|
||||||
- label: I have checked the [Knowledge Base](https://aclist.github.io/dzgui/kb.html) and searched through [past issues](https://github.com/aclist/dztui/issues?q=is%3Aissue+is%3Aclosed) and did not find my issue there.
|
|
||||||
required: true
|
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: version
|
id: device
|
||||||
attributes:
|
|
||||||
label: Version
|
|
||||||
description: DZGUI version
|
|
||||||
options:
|
|
||||||
- 5.6.x (stable)
|
|
||||||
- 5.7.x (testing)
|
|
||||||
- Version prior to 5.6.0
|
|
||||||
default: 0
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: dropdown
|
|
||||||
id: browsers
|
|
||||||
attributes:
|
attributes:
|
||||||
label: Device type
|
label: Device type
|
||||||
options:
|
options:
|
||||||
- Desktop PC
|
- Desktop PC
|
||||||
- Steam Deck
|
- Steam Deck
|
||||||
|
default: 0
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: version
|
||||||
|
attributes:
|
||||||
|
label: DZGUI version
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
placeholder: "5.6.0"
|
||||||
- type: input
|
- type: input
|
||||||
id: distro
|
id: distro
|
||||||
attributes:
|
attributes:
|
||||||
|
|
|
@ -18,6 +18,7 @@ Refer to the documentation for installation and setup instructions:
|
||||||
- [GitHub](https://aclist.github.io/dzgui/dzgui.html)
|
- [GitHub](https://aclist.github.io/dzgui/dzgui.html)
|
||||||
- [Mirror (Codeberg)](https://aclist.codeberg.page)
|
- [Mirror (Codeberg)](https://aclist.codeberg.page)
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Attribution
|
## Attribution
|
||||||
|
|
11
dzgui.sh
11
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
version=5.6.0
|
version=5.6.1
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
|
@ -76,6 +76,9 @@ set_im_module(){
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
redact(){
|
||||||
|
sed 's@\(/home/\)[^/]*@\1REDACTED@g'
|
||||||
|
}
|
||||||
logger(){
|
logger(){
|
||||||
local date="$(date "+%F %T,%3N")"
|
local date="$(date "+%F %T,%3N")"
|
||||||
local tag="$1"
|
local tag="$1"
|
||||||
|
@ -83,8 +86,8 @@ logger(){
|
||||||
local self="${BASH_SOURCE[0]}"
|
local self="${BASH_SOURCE[0]}"
|
||||||
local caller="${FUNCNAME[1]}"
|
local caller="${FUNCNAME[1]}"
|
||||||
local line="${BASH_LINENO[0]}"
|
local line="${BASH_LINENO[0]}"
|
||||||
self="$(<<< "$self" sed 's@\(/[^/]*/\)\([^/]*\)\(.*\)@\1REDACTED\3@g')"
|
printf "%s␞%s␞%s::%s()::%s␞%s\n" "$date" "$tag" "$self" "$caller" "$line" "$string" \
|
||||||
printf "%s␞%s␞%s::%s()::%s␞%s\n" "$date" "$tag" "$self" "$caller" "$line" "$string" >> "$debug_log"
|
| redact >> "$debug_log"
|
||||||
}
|
}
|
||||||
setup_dirs(){
|
setup_dirs(){
|
||||||
for dir in "$state_path" "$cache_path" "$share_path" "$helpers_path" "$freedesktop_path" "$config_path" "$log_path"; do
|
for dir in "$state_path" "$cache_path" "$share_path" "$helpers_path" "$freedesktop_path" "$config_path" "$log_path"; do
|
||||||
|
@ -587,7 +590,7 @@ fetch_helpers_by_sum(){
|
||||||
["ui.py"]="d3ad9153d8599bea0eede9fd3121ee8e"
|
["ui.py"]="d3ad9153d8599bea0eede9fd3121ee8e"
|
||||||
["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
|
["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
|
||||||
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
||||||
["funcs"]="baa2c9c93edacb98384ae9f319e3b27f"
|
["funcs"]="6a1c7ce585d9b76e2e75dba9d4295f8d"
|
||||||
["lan"]="c62e84ddd1457b71a85ad21da662b9af"
|
["lan"]="c62e84ddd1457b71a85ad21da662b9af"
|
||||||
)
|
)
|
||||||
local author="aclist"
|
local author="aclist"
|
||||||
|
|
|
@ -447,7 +447,9 @@ get_remote_servers(){
|
||||||
_fetch "${params[$i]}" > $_cache_temp.${i}
|
_fetch "${params[$i]}" > $_cache_temp.${i}
|
||||||
done
|
done
|
||||||
|
|
||||||
jq -n '[ [inputs]|add ].[]' $_cache_temp.* && rm $_cache_temp.*
|
# ubuntu variants do not support jq 1.7 chained operators
|
||||||
|
# https://github.com/jqlang/jq/releases/tag/jq-1.7
|
||||||
|
jq -n '[ [inputs]|add ][]' $_cache_temp.* && rm $_cache_temp.*
|
||||||
}
|
}
|
||||||
get_unique_maps(){
|
get_unique_maps(){
|
||||||
shift
|
shift
|
||||||
|
@ -735,6 +737,9 @@ dump_servers(){
|
||||||
logger INFO "Server context is '$subcontext', reading from file '$file'"
|
logger INFO "Server context is '$subcontext', reading from file '$file'"
|
||||||
filter_servers "$file" "$@"
|
filter_servers "$file" "$@"
|
||||||
}
|
}
|
||||||
|
redact(){
|
||||||
|
sed 's@\(/home/\)[^/]*@\1REDACTED@g'
|
||||||
|
}
|
||||||
logger(){
|
logger(){
|
||||||
local date="$(date "+%F %T,%3N")"
|
local date="$(date "+%F %T,%3N")"
|
||||||
local tag="$1"
|
local tag="$1"
|
||||||
|
@ -742,8 +747,8 @@ logger(){
|
||||||
local self="${BASH_SOURCE[0]}"
|
local self="${BASH_SOURCE[0]}"
|
||||||
local caller="${FUNCNAME[1]}"
|
local caller="${FUNCNAME[1]}"
|
||||||
local line="${BASH_LINENO[0]}"
|
local line="${BASH_LINENO[0]}"
|
||||||
self="$(<<< "$self" sed 's@\(/[^/]*/\)\([^/]*\)\(.*\)@\1REDACTED\3@g')"
|
printf "%s␞%s␞%s::%s()::%s␞%s\n" "$date" "$tag" "$self" "$caller" "$line" "$string" \
|
||||||
printf "%s␞%s␞%s::%s()::%s␞%s\n" "$date" "$tag" "$self" "$caller" "$line" "$string" >> "$debug_log"
|
| redact >> "$debug_log"
|
||||||
}
|
}
|
||||||
test_ping(){
|
test_ping(){
|
||||||
shift
|
shift
|
||||||
|
@ -1243,8 +1248,8 @@ symlinks(){
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
readarray -t mods < <(find $workshop_dir -mindepth 1 -name meta.cpp | awk -F/ 'NF=NF-1{print $NF}')
|
readarray -t mods < <(find "$workshop_dir" -mindepth 1 -name meta.cpp | awk -F/ 'NF=NF-1{print $NF}')
|
||||||
readarray -t links < <(find $game_dir -type l)
|
readarray -t links < <(find "$game_dir" -maxdepth 1 -type l)
|
||||||
|
|
||||||
if [[ ${#mods[@]} -eq 0 ]]; then
|
if [[ ${#mods[@]} -eq 0 ]]; then
|
||||||
logger INFO "No mods present, aborting"
|
logger INFO "No mods present, aborting"
|
||||||
|
|
Loading…
Reference in a new issue