mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
Compare commits
2 commits
ee06231267
...
66eb4cf6d4
Author | SHA1 | Date | |
---|---|---|---|
66eb4cf6d4 | |||
|
e6b5e40bb2 |
3 changed files with 13 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [5.6.0-beta.17] 2024-12-14
|
||||||
|
### Added
|
||||||
|
- Additional logging
|
||||||
|
|
||||||
## [5.6.0-beta.16] 2024-12-13
|
## [5.6.0-beta.16] 2024-12-13
|
||||||
### Fixed
|
### Fixed
|
||||||
- Add remote resource health checks before downloading updates
|
- Add remote resource health checks before downloading updates
|
||||||
|
|
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.6.0-beta.16
|
version=5.6.0-beta.17
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
|
@ -487,7 +487,7 @@ stale_symlinks(){
|
||||||
local game_dir="$steam_path/steamapps/common/DayZ"
|
local game_dir="$steam_path/steamapps/common/DayZ"
|
||||||
for l in $(find "$game_dir" -xtype l); do
|
for l in $(find "$game_dir" -xtype l); do
|
||||||
logger DEBUG "Updating stale symlink '$l'"
|
logger DEBUG "Updating stale symlink '$l'"
|
||||||
unlink $l
|
unlink "$l"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
local_latlon(){
|
local_latlon(){
|
||||||
|
@ -585,7 +585,7 @@ fetch_helpers_by_sum(){
|
||||||
["ui.py"]="be3da1e542d14105f4358dd38901e25a"
|
["ui.py"]="be3da1e542d14105f4358dd38901e25a"
|
||||||
["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
|
["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
|
||||||
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
||||||
["funcs"]="10c7d9cb9fbb792626ec9e7a4a788ba5"
|
["funcs"]="37897aa36bc2fb6286cee02c8bb07258"
|
||||||
["lan"]="c62e84ddd1457b71a85ad21da662b9af"
|
["lan"]="c62e84ddd1457b71a85ad21da662b9af"
|
||||||
)
|
)
|
||||||
local author="aclist"
|
local author="aclist"
|
||||||
|
|
|
@ -1170,19 +1170,24 @@ compare(){
|
||||||
echo "$diff"
|
echo "$diff"
|
||||||
}
|
}
|
||||||
legacy_symlinks(){
|
legacy_symlinks(){
|
||||||
|
logger INFO "Removing legacy symlinks"
|
||||||
for d in "$game_dir"/*; do
|
for d in "$game_dir"/*; do
|
||||||
if [[ $d =~ @[0-9]+-.+ ]]; then
|
if [[ $d =~ @[0-9]+-.+ ]]; then
|
||||||
|
logger INFO "Unlinking $d"
|
||||||
unlink "$d"
|
unlink "$d"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
readarray -t mod_dirs < <(find "$workshop_dir" -maxdepth 1 -mindepth 1 -type d)
|
readarray -t mod_dirs < <(find "$workshop_dir" -maxdepth 1 -mindepth 1 -type d)
|
||||||
|
logger INFO "Read local mods into array with length: ${#mod_dirs[@]}"
|
||||||
[[ ${#mod_dirs[@]} -eq 0 ]] && return
|
[[ ${#mod_dirs[@]} -eq 0 ]] && return
|
||||||
|
logger INFO "Removing legacy encoding format"
|
||||||
for d in "${mod_dirs[@]}"; do
|
for d in "${mod_dirs[@]}"; do
|
||||||
# suppress errors if mods are downloading at boot
|
# suppress errors if mods are downloading at boot
|
||||||
[[ ! -f "$d/meta.cpp" ]] && continue
|
[[ ! -f "$d/meta.cpp" ]] && continue
|
||||||
local id=$(awk -F"= " '/publishedid/ {print $2}' "$d"/meta.cpp | awk -F\; '{print $1}')
|
local id=$(awk -F"= " '/publishedid/ {print $2}' "$d"/meta.cpp | awk -F\; '{print $1}')
|
||||||
local encoded_id=$(echo "$id" | awk '{printf("%c",$1)}' | base64 | sed 's/\//_/g; s/=//g; s/+/]/g')
|
local encoded_id=$(echo "$id" | awk '{printf("%c",$1)}' | base64 | sed 's/\//_/g; s/=//g; s/+/]/g')
|
||||||
if [[ -h "$game_dir/@$encoded_id" ]]; then
|
if [[ -h "$game_dir/@$encoded_id" ]]; then
|
||||||
|
logger INFO "Unlinking $game_dir/@$encoded_id"
|
||||||
unlink "$game_dir/@$encoded_id"
|
unlink "$game_dir/@$encoded_id"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -1190,6 +1195,7 @@ legacy_symlinks(){
|
||||||
symlinks(){
|
symlinks(){
|
||||||
readarray -t mod_dirs < <(find "$workshop_dir" -maxdepth 1 -mindepth 1 -type d)
|
readarray -t mod_dirs < <(find "$workshop_dir" -maxdepth 1 -mindepth 1 -type d)
|
||||||
[[ ${#mod_dirs[@]} -eq 0 ]] && return
|
[[ ${#mod_dirs[@]} -eq 0 ]] && return
|
||||||
|
logger INFO "Generating symlinks in new format"
|
||||||
for d in "${mod_dirs[@]}"; do
|
for d in "${mod_dirs[@]}"; do
|
||||||
# suppress errors if mods are downloading at boot
|
# suppress errors if mods are downloading at boot
|
||||||
[[ ! -f "$d/meta.cpp" ]] && continue
|
[[ ! -f "$d/meta.cpp" ]] && continue
|
||||||
|
|
Loading…
Reference in a new issue