1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-28 13:22:35 +01:00

chore: bump version

This commit is contained in:
aclist 2023-11-23 00:42:36 +09:00
parent 80854823dd
commit 7a930d7636
2 changed files with 40 additions and 5 deletions

View file

@ -1,5 +1,13 @@
# Changelog
## [4.0.2] 2023-11-22
## Fixed
- Query helper not loading: fixed a remote link pointing to the wrong destination and added a checksum verification to ensure file is present
## [4.0.1] 2023-11-22
## Fixed
- Emergency hotfix to remove build artifacts leaking into main script: if you updated DZGUI from 3.3.18 to 4.0.0 between 2023-11-22 15:00:02 and 2023-11-22 15:03:37 GMT, there is a small chance it will be unable to launch correctly. If so, please follow the instructions on the manual to reinstall.
## [4.0.0] 2023-11-22
Hello players, this is a major version update which overhauls many of DZGUI's underlying systems to improve responsiveness of the application and make menus more intuitive to interact with. It should be considerably more difficult, if not impossible, to inadvertently crash a dialog, and nested dialogs should behave in a more expected fashion, such as when going back and forth between menus or changing options dynamically within a given menu.

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -o pipefail
version=4.0.0-rc.11
version=4.1.0-rc.1
aid=221100
game="dayz"
@ -1009,7 +1009,6 @@ toggle_branch(){
fi
flip_branch="branch=\"$branch\""
awk -v "var=$flip_branch" -v "nr=$nr" 'NR==nr {$0=var}{print}' ${config_path}dztuirc.old > $config_file
printf "[DZGUI] Toggled branch to '$branch'\n"
source $config_file
}
generate_log(){
@ -2005,11 +2004,10 @@ fetch_dzq(){
curl -Ls "$url" > $helpers_path/a2s/$repo.py
}
fetch_query(){
[[ -f $helpers_path/query.py ]] && return
[[ $(md5sum $helpers_path/query.py | awk '{print $1}') == "7cbae12ae68b526e7ff376b638123cc7" ]] && return
local author="aclist"
local repo="$branch"
local repo="dzgui"
local url="https://raw.githubusercontent.com/$author/dztui/$repo/helpers/query.py"
local real="https://raw.githubusercontent.com/aclist/dztui/testing/helpers/query.py"
curl -Ls "$url" > "$helpers_path/query.py"
}
fetch_helpers(){
@ -2045,6 +2043,35 @@ steam_deps(){
fi
logger INFO "steam_cmd set to $steam_cmd"
}
update_steam_cmd(){
local new_cmd
preferred_client="$steam_cmd"
new_cmd="preferred_client=\"$preferred_client\""
mv $config_file ${config_path}dztuirc.old
nr=$(awk '/preferred_client=/ {print NR}' ${config_path}dztuirc.old)
awk -v "var=$new_cmd" -v "nr=$nr" 'NR==nr {$0=var}{print}' ${config_path}dztuirc.old > ${config_path}dztuirc
}
steam_deps(){
logger INFO "${FUNCNAME[0]}"
local flatpak steam
[[ $(command -v flatpak) ]] && flatpak=$(flatpak list | grep valvesoftware.Steam)
steam=$(command -v steam)
if [[ -z "$steam" ]] && [[ -z "$flatpak" ]]; then
warn "Requires Steam or Flatpak Steam"
logger ERROR "Steam was missing"
exit
elif [[ -n "$steam" ]] && [[ -n "$flatpak" ]]; then
toggle_steam=1
steam_cmd="steam"
[[ -n $preferred_client ]] && steam_cmd="$preferred_client"
[[ -z $preferred_client ]] && update_steam_cmd
elif [[ -n "$steam" ]]; then
steam_cmd="steam"
else
steam_cmd="flatpak run com.valvesoftware.Steam"
fi
logger INFO "steam_cmd set to $steam_cmd"
}
initial_setup(){
echo "# Initial setup"
run_depcheck