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